java - Find the first activity in the stack -


my application has 3 entry points. user can start launcher, tapping notification icon, or tapping url (configured intent filter). question is; how can know starter activity?

any ideas?

you can set value using shared preferences lets subsequent activities (or application object) know starter activity was.

there may options, depending on how want app behave, starting second activity result code sending activity, question not sufficiently detailed make simplest of recommendations.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -