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 -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -