Re: [android-developers] Re: TaskAffinity causes new instance being created when startActivity

2010-06-13 Thread Dianne Hackborn
If you want everything running in the same task, then don't use FLAG_ACTIVITY_NEW_TASK. On Sun, Jun 13, 2010 at 5:59 AM, James Wang wrote: > Thanks, YangJian. > > What we want is to put all activities started by L stay in the same > task as L. So we have to set all activities`s taskAffinity the

Re: [android-developers] Re: TaskAffinity causes new instance being created when startActivity

2010-06-10 Thread Dianne Hackborn
If they are modelling separate applications, then they each need to have a different task affinity. Having the same affinity means that when you start the activity, it will have an affinity for an existing task with the same name. On Thu, Jun 10, 2010 at 8:09 AM, James Wang wrote: > Dianne, You

RE: [android-developers] Re: TaskAffinity causes new instance being created when startActivity

2010-06-10 Thread 楊健
When L starts A at the step 3 ,you want only one A or two instances of A? If only one , use the flag " singleTask ",if two, do nothing . Can you describe you problem more exactly? I do not understand you want the L A B in the same task or not. -Original Message- From: android-developers@g