[android-developers] Re: More Than One Instance of Application

2009-04-13 Thread Streets Of Boston
This won't work. Android controls the creation of activities. Android provides callbacks such as 'onCreate' (and 'onDestroy', etc.) that inform the application developer of the lifetime management of his/her activity. In anser to the original question from Noam: go to

[android-developers] Re: More Than One Instance of Application

2009-04-12 Thread Roman Baumgaertner
Noam, Try to use the singleton pattern in your application. If you have already an instance created and try to create another one, then you would not be able to do this. Sr. SW Engineer Roman Baumgaertner ·T· · ·Mobile· stick together The views, opinions and statements in this email are those

[android-developers] Re: More Than One Instance of Application

2009-04-12 Thread Roman
Noam, Try to use the singleton pattern in your application. If you have already an instance created and try to create another one, then you would not be able to do this because of the singleton pattern. Sr. SW Engineer Roman Baumgaertner ·T· · ·Mobile· stick together The views, opinions and

[android-developers] Re: More Than One Instance of Application

2009-04-10 Thread Jason Van Anden
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,

[android-developers] Re: More Than One Instance of Application

2009-04-09 Thread Dianne Hackborn
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