Is there anyway tracking down application gets minimized? If there is something please let me know cause I have to update my own application when application gets minimized. It would be better doing somewhere irrespective of any activity.
Asked
Active
Viewed 259 times
2 Answers
1
There is a callback in activity called onUserLeaveHint(). It is called when activity gets left not by back press, but some interruption - home button or may be incoming call. Create a base class Activity which calls to an Application instanse for some action and derive from this abstract class.
Vladimir Ivanov
- 42,109
- 17
- 76
- 102
-
Thanks, I was looking exactly for this – Robert Smith Mar 12 '12 at 10:54