On Thu, Aug 18, 2011 at 8:02 PM, Spica <[email protected]> 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/commonsguy
http://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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to