android - How to know if an Activity has been created and access its data? -


i have broadcast receiver receives sms , creates notifications. app needs login , don't know how procede.

should launch login activity if app has been destroyed? or should access saved shared preferences if any?

my ideal solution launch login activity if app has been closed , resuming activity if it's still in stack.

just check inside onresume() method of activity/service if it's connected server. if not display login activity (or use stored, encrypted credentials) , reconnect.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -