[android-developers] Re: Finish multiple tasks (stacks)

2010-11-17 Thread raukodraug
Hi everyone, Just an update if someone is interested in thsi topic. Creating different tasks, of course, creates different "recent" applications when pressing "home", and i dont think the user would appreciate it. So, reading more about it, understood that they cant disappear from there. Hence, I s

[android-developers] Re: Finish multiple tasks (stacks)

2010-11-17 Thread raukodraug
Hi everyone, Just an update if someone is interested in thsi topic. Creating different tasks, of course, creates different "recent" applications when pressing "home", and i dont think the user would appreciate it. So, reading more about it, understood that they cant disappear from there. Hence, I s

[android-developers] Re: Finish multiple tasks (stacks)

2010-11-17 Thread raukodraug
Hi everyone, Just an update if someone is interested in thsi topic. Creating different tasks, of course, creates different "recent" applications when pressing "home", and i dont think the user would appreciate it. So, reading more about it, understood that they cant disappear from there. Hence, I s

[android-developers] Re: Finish multiple tasks (stacks)

2010-11-12 Thread raukodraug
Thanks everyone for your replies :) I solved it by keeping an array of all the activitygroups, and whenever i finished one of them, i finished others. I know its not the cleanest solution, but it works fine. Thanks again, Cheers On Nov 12, 11:34 am, Dianne Hackborn wrote: > On Fri, Nov 12, 2010

Re: [android-developers] Re: Finish multiple tasks (stacks)

2010-11-12 Thread Dianne Hackborn
On Fri, Nov 12, 2010 at 9:15 AM, raukodraug wrote: > Ganapathy and fr4gus, the startactivityforresult does not work when > using singleTask, which is what i am doing > > http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent > , > int) > Yes

Re: [android-developers] Re: Finish multiple tasks (stacks)

2010-11-12 Thread Mark Murphy
On Fri, Nov 12, 2010 at 12:15 PM, raukodraug wrote: > and Mark, the problem is that i have several activities within each > tab, thus the need for creating Activities. As the British like to say, bollocks. > Any other ideas? Get rid of the "several activities within each tab" and use Views in y

[android-developers] Re: Finish multiple tasks (stacks)

2010-11-12 Thread raukodraug
Ganapathy and fr4gus, the startactivityforresult does not work when using singleTask, which is what i am doing http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int) and Mark, the problem is that i have several activities within each tab

Re: [android-developers] Re: Finish multiple tasks (stacks)

2010-11-12 Thread Mark Murphy
On Fri, Nov 12, 2010 at 9:13 AM, raukodraug wrote: > And Dianne, I know its not the way it is supposed to be, but that was > the solution i took after trying to make the tabs work in 1.5. Always > running out of memory in the stack, since the tabhost puts like 5 > levels in it. So I sort of implem

[android-developers] Re: Finish multiple tasks (stacks)

2010-11-12 Thread raukodraug
Thanks a lot Ganapathy and fr4gus, it sounds like the way to go. Ill implement that. And Dianne, I know its not the way it is supposed to be, but that was the solution i took after trying to make the tabs work in 1.5. Always running out of memory in the stack, since the tabhost puts like 5 levels i

[android-developers] Re: Finish multiple tasks (stacks)

2010-11-11 Thread fr4gus
I agree with Ganapathy.C. I've done it before, "linking" activities using startActivityForResult, and the last (the activity on top) on the event that I want to finish it, it will trigger onActivityResult in rest of activities. -f4 On Nov 11, 12:39 am, "Ganapathy.C" wrote: > Use onActivityResult

[android-developers] Re: Finish multiple tasks (stacks)

2010-11-10 Thread Ganapathy.C
Use onActivityResult() method in stack of activity then pass unique result code to finish that activity.. On Nov 11, 7:08 am, Dianne Hackborn wrote: > You can't do this without programmatically getting all of your activities to > call finish() (possible using CLEAR_TOP to reduce some of that),