hamid_c February 2016

Whats happen to old intent when new intent received?

There are 3 activity (A-B-C)

Activity A send an intent to activity B first

Then activity C send another intent to activity B

In Activity B, getIntent() will return the newer intent? In other words: is the newer intent overriding the older intent?

Is there a way to keep an intent history?

Answers


hamid_c February 2016

SOLVED: if i start activity B from activity A and then i want to relaunch it from activity C with intent's flag >>> FLAG_ACTIVITY_SINGLE_TOP<<< i just need in activity B override protected void onNewIntent(Intent intent) and get extra from new intent that received from activity C

Post Status

Asked in February 2016
Viewed 2,215 times
Voted 14
Answered 1 times

Search




Leave an answer