Is there a universal way to be aware of application switching to background by either pressing "back", "home" or selecting one of other previously opened apps?
Asked
Active
Viewed 194 times
1
-
1please refer this http://stackoverflow.com/questions/3667022/android-is-application-running-in-background – Juned Oct 17 '12 at 11:01
1 Answers
4
Your current actvity's onPause() will be called. Reference
Diego
- 33,213
- 18
- 87
- 131
Aswin Kumar
- 5,073
- 5
- 31
- 36
-
Thanks! Should have refreshed my memory of `Activity`'s life cycle before asking, but the thought didn't even cross my mind :) – Violet Giraffe Oct 17 '12 at 10:59