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 4339664
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T11:14:47+00:00 2026-05-21T11:14:47+00:00

Suppose There are some activity. I want to start another activity from the main

  • 0

Suppose There are some activity.

I want to start another activity from the main activity. and another from that activity. and another from the next one.

This is how it is –

Main Activity -> Activity 1 -> Activity 2 -> Activity 3

Now I want to switch from Activity 3 to Activity 2 , when i click the back button it will show Activity 2 for few second and came back to Activity 1 suddenly . it is not stable for back button press, sometime it bring it to main actitity.

I don’t know is there any way to get it done.

If someone know about this. Let me know.

  • 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-05-21T11:14:47+00:00Added an answer on May 21, 2026 at 11:14 am

    http://developer.android.com/guide/topics/fundamentals/tasks-and-back-stack.html refer to this will give u some solution for your problem.
    create intent and call the other activity.

    intent i=new intent();
    i.setclass(presentclassname.this,secondclass.class);
    startActivity(i); will take u to other screen...
    

    if u want to come back when u press on back button
    just write the onClickListener() of that button

    back.setOnClickListener(new OnClickListener() {
    
            @Override
            public void onClick(View v) {
                // TODO Auto-generated method stub
                tv.setText("");
                finish();
            }
    

    will take u to the previous screen like this u can do…

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

Sidebar

Related Questions

Suppose there is a System A which gives some output. This output is used
Suppose I have an activity A that starts activity B and kills itself. Now
Suppose now there are some components inside a JPanel and the layout is arranged
I want to add some divs using jQuery in a main div called activity-div
Propose to consider the following problem. Suppose we have some composite object. Are there
Suppose there is an image_url column in database. I want the user to choose
How should be implemented facultative one-to-one relation in Doctrine ORM and Symfony? Suppose there
I've read some posts with some self implementations of this but I think now
I have Dialog in my activity, what I want is suppose the dialog is
After reading some questions/answers about activity and process lifecycle. I suppose I understand the

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.