[android-developers] Re: Broadcast receiver Activity is in foreground or stop.

2011-10-20 Thread Anieeh
Thanx Ali For your quick reply I have tried this in different way i.e. i am putting one boolean variable called "isAppInFront" in Application extended class and i am keep on updating this variable form onStart() and onStop() method but the problem is as i have said i have many activity so

[android-developers] Re: Broadcast receiver Activity is in foreground or stop.

2011-10-20 Thread Ali Chousein
You know when onPause()-OnStop()-onDestroy() of your activities are called. Inside one of these methods write your state to permanent storage (e.g. DB, shared preferences, even plain text file, you name it). Later on you can read which state you are in from permanent storage. I don't know if there