Re: [android-developers] Determine Application State (Foreground/Background) when onNewIntent() is called due to URL scheme

2013-12-02 Thread Justin Anderson
According to the docs for onNewIntent(): *An activity will always be paused before receiving a new intent, so you can count on onResume() http://developer.android.com/reference/android/app/Activity.html#onResume() being called after this method.* The docs for onPause() state this: Called as

[android-developers] Determine Application State (Foreground/Background) when onNewIntent() is called due to URL scheme

2013-11-19 Thread Piyush Hari
onNewIntent() of MainActivity with launchMode 'singleTop' is called when application is invoked using its registered URL scheme. The order of call is : onPause (app is entering in background) onNewIntent (open url intent passed) onResume (app is in foreground) In onNewIntent(), how can one