0

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.

skaffman
  • 398,947
  • 96
  • 818
  • 769
Robert Smith
  • 457
  • 2
  • 9
  • 25

2 Answers2

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,730
  • 18
  • 77
  • 103
0

I think that you can get an indication that application is being minimized by overriding the onpause and onstop methods then on the basis of your requirements you can do some action there. Look at this post as well

Community
  • 1
  • 1
MARK
  • 2,302
  • 4
  • 25
  • 44