Sunday, June 26, 2011

[android-developers] Finding out how the Intent was started

Hi all.

I assume there is a way of finding out how your Activity was started,
for example:

Intent i = new Intent(ActivtyA.this, ActivityB.class);

...when B starts, I want to find out the activity that started it,
which in this case would be an instance of ActivityA. How can I get
this information?


Following on from that, is there a way to tell:

a) That the application has just been launched from the main
application launcher, from the home screen.

b) If the application has just been resumed via the recent apps list,
i.e. hold down home button, select app from recent list.


Many thanks.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment