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> wrote:
> 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 what I wrote:
>
> >> Immediately after the parent calls startActivity(), the parent calls
> >> finish() on itself.
>
> I did not tell you to call finish() on getParent(). Delete the
> "ParentActivity.this.getParent()." from your second statement, please.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to