Skip to content

Instantly share code, notes, and snippets.

@soulfly
Created January 10, 2013 16:24
Show Gist options
  • Save soulfly/4503430 to your computer and use it in GitHub Desktop.
Save soulfly/4503430 to your computer and use it in GitHub Desktop.
/**
* 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