Don't call finish after starting your 2nd activity.

Al.

On Jul 4, 7:51 pm, Jroid <jro...@gmail.com> wrote:
> I have two activities. The first is a list where the user selects one
> of the items which takes them to a second activity showing the details
> of the item they selected.  When the user clicks the back button I
> want the app to return to the first activity.
>
> Is there anything special i need to do to make this happen?
>
> Right now when I click the back button from the second activity it
> exits the app just like the home button would.
>
> Here is how I am starting the Second Activity.
> startActivity(new Intent(getApplication(), SecondActivity.class));
> finish();

-- 
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