[android-developers] Re: How to finish parent activity once child activity is loaded

2011-08-18 Thread Spica
Guys, any idea about my question? On Aug 17, 11:57 pm, Spica spicaneb...@gmail.com wrote: I want to load child activity from parent activity. Once child is loaded i want to finish the parent activity. I am trying this code, which closes whole application;

Re: [android-developers] Re: How to finish parent activity once child activity is loaded

2011-08-18 Thread Mark Murphy
On Thu, Aug 18, 2011 at 7:31 AM, Spica spicaneb...@gmail.com wrote: Guys, any idea about my question? On Aug 17, 11:57 pm, Spica spicaneb...@gmail.com wrote: I want to load child activity from parent activity. Once child is loaded i want to finish the parent activity. Immediately after the

[android-developers] Re: How to finish parent activity once child activity is loaded

2011-08-18 Thread Spica
It did not work, here is the code in parent activity startActivity(ChildActivity); ParentActivity.this.getParent().finish(); When i hit back button parent activity come on front. On Aug 18, 7:47 am, Mark Murphy mmur...@commonsware.com wrote: On Thu, Aug 18, 2011 at 7:31 AM, Spica

Re: [android-developers] Re: How to finish parent activity once child activity is loaded

2011-08-18 Thread Mark Murphy
On Thu, Aug 18, 2011 at 8:02 PM, Spica spicaneb...@gmail.com wrote: It did not work, here is the code in parent activity startActivity(ChildActivity); ParentActivity.this.getParent().finish(); When i hit back button parent activity come on front. That is not what I told you to do. Here is

[android-developers] Re: How to finish parent activity once child activity is loaded

2011-08-18 Thread Spica
great, it worked... now child activity is running and if i try to run app again then parent activity starts again. Parent and child activities are both running at the same time. I do not want to load app again if child is already running? On Aug 18, 8:06 pm, Mark Murphy mmur...@commonsware.com