明確にする必要がありました: 2 つのインテントを定義して、同じデータを 2 つの異なるアクティビティに渡すことはできますか? 2 番目のクラス (logout.class) はアクセスされていません。コードは次のとおりです。
protected void onPostExecute(String result) {
if(result != null)
{
Intent tokenIntent = new Intent(mContext, tokenActivity.class);
Bundle bundle = new Bundle();
bundle.putString("responsedata",result.substring(result.indexOf("=")+1,result.length()));
tokenIntent.putExtras(bundle);
startActivity(tokenIntent);
Intent tokenIntent2 = new Intent(mContext,logout.class);
Bundle bundle2= new Bundle();
bundle2.putString("responsedata",result.substring(result.indexOf("=")+1,result.length()));
tokenIntent.putExtras(bundle2);
startActivity(tokenIntent2);
}
}
}