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
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
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 --
@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
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
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
6 matches
Mail list logo