Is it possible to find out when Android app returns from background? -


so, idea is: user launching application, , have perform task x.

user work time , quit (app in background now).

then open app again (from background) , have perform task x again.

in first case, can use oncreate() of custom application class, not simple second 1 - there's no onresume() method or something. ideas?

accroding activity lifecycle every time activity no more shown user same method called, no matter if went background pressing "home", or overlayed activity.


Comments

Popular posts from this blog

vb.net - Alternative to the T-SQL AS keyword -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

ios - CFRelease causing crash in iPad application -