0
我有活動#1:我搬到#Activity 2的Android回去與以前的包/演員之前的活動
活動1:
Intent PostLogin = new Intent(getApplicationContext(), activity2.class);
PostLogin.putExtra("email",emailOfUser);
PostLogin.putExtra("token", authToken);
PostLogin.putExtra("url", url);
startActivity(PostLogin);
活動#2:
ONCREATE ACTIVITY 2:
Intent loginActivity = getIntent();
token = loginActivity.getStringExtra("token");
email = loginActivity.getStringExtra("email");
url = loginActivity.getStringExtra("url");
MOVING TO ACTIVITY 3
Intent createOrJoin = new Intent(getApplicationContext(), activity3.class);
createOrJoin.putExtra("token", token);
createOrJoin.putExtra("url",url);
// createOrJoin.putExtra("token",);
startActivity(createOrJoin);
活動3重新開始活動2
Intent backtoPost = new Intent(getApplicationContext(), activity2.class);
startActivity(backtoPost);
finish();
所以我最初在活動2的信息,我從活動1.獲得再從活動二,我去活動3,在經過一些東西,我來回到到活動2.
哪有我仍然有token, email, url
的值?