I may be wrong but I would think that FLAG_ACTIVITY_NEW_TASK would cause it to be reset when it is brought to the front... What happens when you remove this flag?
Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, May 16, 2011 at 11:51 AM, Eric <[email protected]> wrote: > Here is proof from the logcat event log that ActivityA1, which was at > the top of the task stack before I hit HOME, is no longer there when I > resume the app/task using the launcher icon. Are the numbers in > parenthesis the Task Id? I'm not sure why the first call to > on_pause_activity has (96), while the next call to on_pause_called has > (5243). There are definitely some strange things happening here, I > wish I could understand it. > > > I/am_pause_activity( 96): > [1082508336,com.mycompany.android.myapp/.activities.ActivityA1] > I/am_task_to_front( 96): 2 > I/am_new_intent( 96): > > [1079362352,2,com.android.launcher2/.Launcher,android.intent.action.MAIN,NULL,NULL, > 274726912] > I/am_on_paused_called( 5243): > com.mycompany.android.myapp.activities.ActivityA1 > I/am_resume_activity( 96): > [1080567448,2,com.android.launcher2/.Launcher] > I/am_on_resume_called( 183): com.android.launcher2.Launcher > I/am_kill ( 96): [5125,com.google.android.partnersetup,14,too many > background] > I/am_proc_died( 96): [5125,com.google.android.partnersetup] > I/am_create_service( 96): [1083677696,com.google.android.apps.maps/ > com.google.googlenav.friend.android.LocationFriendService,,4760] > I/force_gc( 96): Binder > I/dvm_gc_info( 96): > [8320808730292008758,-8905434606076077981,-3976532200214726614,8595501] > I/dvm_gc_info( 5243): > [7594024917365667640,-8921754862033352543,-3951762402264201174,8665153] > I/dvm_gc_madvise_info( 96): [872448,524288] > I/dvm_gc_madvise_info( 5243): [663552,524288] > I/dvm_gc_info( 5243): > [7594024917365577337,-9064181200248944479,-3951762402264201174,8665152] > I/am_destroy_service( 96): [1083677696,com.google.android.apps.maps/ > com.google.googlenav.friend.android.LocationFriendService,4760] > I/am_pause_activity( 96): > [1080567448,com.android.launcher2/.Launcher] > I/am_task_to_front( 96): 51 > I/am_create_activity( 96): > > [1079364032,51,com.mycompany.android.myapp/.activities.ActivityA,android.intent.action.MAIN,NULL,NULL, > 274726912] > I/am_on_paused_called( 183): com.android.launcher2.Launcher > I/am_restart_activity( 96): > [1079364032,51,com.mycompany.android.myapp/.activities.ActivityA] > I/am_on_resume_called( 5243): > com.mycompany.android.myapp.activities.ActivityA > I/activity_launch_time( 96): > [1079364032,com.mycompany.android.myapp/.activities.ActivityA, > 1301,1301] > I/dvm_gc_madvise_info( 5243): [667648,524288] > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

