Created
January 10, 2013 16:24
-
-
Save soulfly/4503430 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Post message to Twitter | |
*/ | |
private boolean postTwitt(UserAccountManager _userAccMan, String _message) { | |
try { | |
Tweet uT = new Tweet(_message); | |
TweetER tTR = TweetER.getInstance(_userAccMan); | |
tTR.post(uT); | |
return true; | |
} catch (IllegalArgumentException iAE) { | |
return false; | |
}catch (SecurityException sE) { | |
return false; | |
}catch (Exception ex) { | |
return false; | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment