[android-developers] Re: How to bring Activity to top of stack and reset it?

2011-01-28 Thread Streets Of Boston
Wouldn't 'singleTop' be better in his example? On Jan 28, 5:37 pm, Kostya Vasilyev kmans...@gmail.com wrote: Moto, You can try overriding onNewIntent and setting launchMode to singleTask in the manifest. http://developer.android.com/reference/android/app/Activity.html#onNe...) -- Kostya

[android-developers] Re: How to bring Activity to top of stack and reset it?

2011-01-28 Thread Streets Of Boston
If i understand you correctly, you'd want to assign 'singleTop' to an activity's Launch Mode (in the manifest). This mode makes sure that there is at most one instance of your activity in your app, never more than one. When a 'singleTop' activity is created, its onCreate method is called. When a

Re: [android-developers] Re: How to bring Activity to top of stack and reset it?

2011-01-28 Thread Kostya Vasilyev
SingleTop allows multiple instances within a task, and does not reorder existing activities. Combining with the flag to reorder might work, but singleTask already takes care of that. http://developer.android.com/guide/topics/manifest/activity-element.html#lmode -- Kostya Vasilyev --

[android-developers] Re: How to bring Activity to top of stack and reset it?

2011-01-28 Thread Moto
@Kostya and Streets Of Boston Thanks guys that is actually exactly what I was looking for! That's great!! :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To

Re: [android-developers] Re: How to bring Activity to top of stack and reset it?

2011-01-28 Thread Moto
Yep! using android:launchMode=singleTop with implementing the onNewIntent() worked perfect! I assume this also helps the application be a lot faster, responsive, and lot less GC. :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Re: How to bring Activity to top of stack and reset it?

2011-01-28 Thread Moto
Thanks man that's exactly what I ended doing! :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to