public abstract class AndroidTwitterLogin
extends java.lang.Object
AndroidTwitterLogin atl = new AndroidTwitterLogin(myApp,
MY_TWITTER_KEY,MY_TWITTER_SECRET,MY_TWITTER_CALLBACK) {
protected void onSuccess(Twitter jtwitter, String[] tokens) {
jtwitter.setStatus("I can now post to Twitter!");
// Recommended: store tokens in your app for future use
// with the constructor OAuthSignpostClient(String consumerKey, String consumerSecret, String accessToken, String accessTokenSecret)
}
};
atl.run();
Constructor and Description |
---|
AndroidTwitterLogin(Activity myActivity,
java.lang.String oauthAppKey,
java.lang.String oauthAppSecret,
java.lang.String calbackUrl) |
Modifier and Type | Method and Description |
---|---|
protected void |
onFail(java.lang.Exception e) |
protected abstract void |
onSuccess(Twitter jtwitter,
java.lang.String[] tokens) |
void |
run() |
void |
setAuthoriseMessage(java.lang.String authoriseMessage)
The message that is shown to the user before
directing them off to Twitter.
|
public AndroidTwitterLogin(Activity myActivity, java.lang.String oauthAppKey, java.lang.String oauthAppSecret, java.lang.String calbackUrl)
myActivity
- This will have its conten view set, then reset.oauthAppKey
- oauthAppSecret
- calbackUrl
- Not importantpublic void setAuthoriseMessage(java.lang.String authoriseMessage)
public final void run()
protected abstract void onSuccess(Twitter jtwitter, java.lang.String[] tokens)
protected void onFail(java.lang.Exception e)