Detect when app icon is clicked to launch app in android
Is there a way in android to detect when the user has clicked an app icon to launch the app? I mean the user was using my application. He then presses the home key, causing the app to go to the background. After a while, he clicks the app icon again. My question is: am I getting a callback for this?
+2
a source to share
3 answers
please read http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle
How many activities your application has, you will receive a callback onResume()
for the last open activity.
0
a source to share