Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8644829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:23:47+00:00 2026-06-12T12:23:47+00:00

I am developing a small application at the moment it consists on 3 Activities.

  • 0

I am developing a small application at the moment it consists on 3 Activities.

Now when I start my application it starts fine and I can navigate from activity1 to activity 3 properly and without any problem.

Activity1–>Activity2—>Activity3

The problem comes that when I press the back button of my mobile device to go back to activity2, the application simply closes.

Can somebody please suggest how to figure it out what is happening.

that is how i am going to Activity2 from Activity2

   Intent activity3 = new Intent(Activity2.this,Activity3.class);
            Activity2.this.startActivity(activity3);
            Activity2.this.finish();

Note:I am not using emulator I am using mobile and doing all the debugging directly on the mobile.
Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T12:23:48+00:00Added an answer on June 12, 2026 at 12:23 pm

    This is because you are calling the finish() function which removes the activity from the stack. Remove the line Activity2.this.finish(); and you should be going back the way you wanted.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to objective-c and at the moment developing a small application. I have
I am developing a small application to get some picture from a scanner. What
I'm developing a small application that reads data from a database and displys it
I am developing a small client / server application in C. At the moment
he, i am new to android platform. Now i am developing a small application
I am developing a small application which lists the contents from files of a
I am developing a small application using Struts, Spring and hibernate3. But now I
Greetings, Currently developing small web service application where response from web service (using CXF
I am developing a small flash application. In my application a user can draw
I am developing a small application where an admin can insert bulk discount voucher

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.