私はこれに従いますtutorial。私はユーザーの電子メールIDが必要です。私のコードの結果はゼロです。電子メールIDは、アンドロイドのtwitter api sdkからnullになります。com.twitter.sdk.android:twitter:[email protected] "
TwitterAuthClient authClient = new TwitterAuthClient();
authClient.requestEmail(session, new Callback<String>() {
@Override
public void success(Result<String> result) {
// Do something with the result, which provides the email address
Log.d(TAG,"result = "+result);
}
@Override
public void failure(TwitterException exception) {
// Do something on failure
Log.d(TAG,"exception = "+exception);
}
});
を設定し、あなたのTwitterアプリで有効になって追加の許可を以下しているあなたは、SDKからの電子メールIDを取得するためのコードを表示できることを確認してください? – Vickyexpert
@Vickyexpert私のコードを更新します.... –