I ran into this as well. Try adding this to the Activity tag ...

android:launchMode="singleTask"

Jason Van Anden
http://www.smileproject.com


On Thu, Apr 9, 2009 at 6:29 PM, Dianne Hackborn <hack...@android.com> wrote:
> It brings the currently running instance to the foreground.
>
> On Thu, Apr 9, 2009 at 2:39 PM, Noam <noam.ha...@gmail.com> wrote:
>>
>> Hello,
>> Is there a way to prevent the user of opening more than one instance
>> of my application?
>>
>> For example:
>> User clicks on App and opens it.
>> The user clicks on the home button. (the app is still running in the
>> background)
>> The user clicks on (not the menu button, but the button above it in
>> the homescreen), and then opens the application again.
>> Does it open the same instance, or does it create another one?
>> If it does create another one, how can I prevent it from creating
>> another one, and just opening the existing instance?
>>
>> Thanks,
>> Noam.
>>
>
>
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to