[android-developers] Re: How the use same instances when launching application twice

2009-04-14 Thread Sarnoth
Haven't we been over this before? http://groups.google.com/group/android-developers/browse_thread/thread/bd020f8b809a6e56/e8b9520e43410abd On Apr 14, 2:53 am, Neo mobi.liub...@gmail.com wrote: My app has 4 activities on the stack A-B-C-D (top) If you press home and re-enter the application,

[android-developers] Re: How the use same instances when launching application twice ?

2009-04-05 Thread Sarnoth
I posted with this same problem before and then it just seemed to disappear so I replied to my own post with a never mind, it works now and no real resolution. Well, as I've continued to develop I've run in to it again and figured out what is going on. There is a problem with the development

[android-developers] Re: How the use same instances when launching application twice ?

2009-04-04 Thread Lovell
I think I have the same question, but I'm going to try to explain it a little better: My app has 4 activities on the stack A-B-C-D (top) If you press home and re-enter the application, another instance of A is started, so the stack is A-B-C-D-A (top). I know this because when I press BACK, A is

[android-developers] Re: How the use same instances when launching application twice ?

2009-04-04 Thread Dianne Hackborn
As I've said, what you are saying you want is the normal behavior. To everyone, you must give -detailed- information about exactly what you are doing for there to be any hope of someone being able to help you. In particular, provide: (1) Your complete AndroidManifest.xml (2) The exact code you

[android-developers] Re: How the use same instances when launching application twice ?

2009-03-24 Thread ckitop
Hi, it seems that i have the same problem: First I start my application. A BroadcastReceiver launches the same activity so the intent has the flag Intent.FLAG_ACTIVITY_NEW_TASK but now i got the same launched activity twice How can I finish the task root ? or bring back the root task to

[android-developers] Re: How the use same instances when launching application twice ?

2009-03-20 Thread Derek
Hi again, And what about if I call finish(); Is the Activity really destroyed even if I use singleTask ? Thanks. On Mar 17, 7:59 pm, Derek cram.de...@gmail.com wrote: Do I need both addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); and android:launchMode=singleTask in AndroidManifest.xml ? On Mar

[android-developers] Re: How the use same instances when launching application twice ?

2009-03-20 Thread Dianne Hackborn
Um, what you are requesting is the normal behavior. When you tap on an app's icon in home, it brings the current task of that app to the foreground if it is already running. And services are singletons so you can only every get a single instance of a service running. On Tue, Mar 17, 2009 at

[android-developers] Re: How the use same instances when launching application twice ?

2009-03-17 Thread deepdr...@googlemail.com
I would expect that the attribute android:launchMode=singleTask (notice the lower case s) on the Activity does what you want. How do you determine this doesn't work? -- http://www.deepdroid.com On 17 Mrz., 10:26, Derek cram.de...@gmail.com wrote: Hi, Is it possible to re-use all the

[android-developers] Re: How the use same instances when launching application twice ?

2009-03-17 Thread dillirao malipeddi
when you create a new intent set flag as your_intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); startActivity(your_intent); On Tue, Mar 17, 2009 at 2:56 PM, Derek cram.de...@gmail.com wrote: Hi, Is it possible to re-use all the instances of Activities and Services when an application

[android-developers] Re: How the use same instances when launching application twice ?

2009-03-17 Thread Derek
Do I need both addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); and android:launchMode=singleTask in AndroidManifest.xml ? On Mar 17, 3:04 pm, dillirao malipeddi dillir...@arijasoft.com wrote: when you create a new intent set flag as your_intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);