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 <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 parent calls startActivity(), the parent calls
> finish() on itself.
>
> --
> 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