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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T03:01:15+00:00 2026-05-20T03:01:15+00:00

Basiclly I have two screens at the moment. Question and Answer screens. When you

  • 0

Basiclly I have two screens at the moment. Question and Answer screens. When you click on the answer you think it is on the question screen it takes you to the answer screen to tell you if you were correct. The next part is from that screen you go back to the question screen and you are asked another question. At the moment this is creating loads of new activities and can easily get out of hand.
What I need is to know when a question activity gets 3 down and stop it. Basicly from the reason screen you can go back to view the question, but when you are on a new question it should remove the old and the reason page.

How do I do this?

  • 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-20T03:01:15+00:00Added an answer on May 20, 2026 at 3:01 am

    In the Answer Activity you should call this.finish(), and that will go back to the Question Activity. And in the Question Activity start the AnswerActivity with startActivityForResult, so that the question Activity will be notified when the Answer is finished, so you can show a new Question, etc. So each AnswerActivity will be destroyed. If you need help with this, post a code sample. If you architect this way you shouldn’t need to find Activities in the stack.

    Question Activity

    this.startActivityForResult(Intent, requestCode); // somewhere in your code to launch the Answer Activity
    
    public void onActivityResult(int requestCode, int resultCode, Intent data) {
        // now we have returned from the AnswerActivity and it has been destroyed
        // do any processing here on the answer or show a new question.
    }
    

    Answer Activity

    public void onBackClick(View v) {
      //on click handler for a back button or something.
      this.setResult(resultCode, Intent /* some data to give back to parent */);
      this.finish();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I apologize in advance for asking this question, I know similar questions have already
Here's my issue. I have a paddle class and a ball class. Both have
I need to make an effect similar to the Android effect when you slide
I am trying to implement a wizard and I am using the CardLayout .
I'm working on creating a simple 3D rendering engine in Java. I've messed about
I wonder if anyone can suggest the best approach to detect collision between multiple
I'm working with a project that is WPF and VB.net. I want to visually
Is it possible for javascript to update automatically if a mySQL field is modified?
I am interested in the way that gmail handles fragments and their transitions. I'm
Math has come on my way again and has defeated me. I need your

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.