2011-07-20 11 views
0

ここでは、Twitterでログアウトしてログアウトボタンを作成するために使用するデータを削除するためのコードです。しかし、それでも私は自動的にログオンします。何か案は?アンドロイドアプリでTwitterからログアウトする方法

SharedPreferences.Editor editor = (this.getSharedPreferences(Login.PREFERENCES, 
Context.MODE_PRIVATE)).edit(); 
    editor.remove(Login.userkey); 
    editor.remove(Login.usersecret); 
    editor.remove(Login.username); 
    editor.commit(); 
    finish(); 

答えて

0

http://www.londatiga.net/it/how-to-post-twitter-status-from-android/を使用してツイッターを実装しました。私は

public void logoutTwitter() { 
     mTwitter.resetAccessToken(); 
     b 
    } 

を使用してログアウトすることができます私は、これはあなたを助けることを願っサイト上のコードをチェックしてもgithubのを確認し、

してください。

関連する問題