If i'm understanding correctly and Activity B is single-task or single-top
(i.e. it is re-used for new incoming intents):
public class B extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
...
handleTheIntent(getIntentI());
...
}
@Override
public void onNewInstanceState(Intent newIntent) {
setIntent(newIntent);
handleTheIntent(newIntent);
}
private void handleTheIntent(Intent intent) {
..
...
// do what you need to do for handling an incoming intent for this
activity
...
}
}
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en