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

  • SEARCH
  • Home
  • 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 7730435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:13:24+00:00 2026-06-01T06:13:24+00:00

I’m new to android development and I’ve developed a small app but I’m facing

  • 0

I’m new to android development and I’ve developed a small app but I’m facing problems with linking different activities (i.e navigating between activities in a desired way).
I am sorry to ask these questions but I tried different solutions from google but none of them worked for me and I’m still not clear with these concepts.

Plz help

I have some questions:

  1. How to delete activity at top of stack?

  2. How to delete all activities from activity stack?

  3. Intent(A.this,B.class) with (Intent.FLAG_ACTIVITY_NO_HISTORY) will not add activity B to stack but what if I want to add activity A to stack?

  4. Is there a way by which I can visualize contents of activity stack (that will help me to set appropriate flags while calling activities)?

  5. I have an activity A (with 3 buttons) from which I call activity B where I get some operations done with user input and I want to come back to activity A but I want to show only 1 button out of those 3 how can I do this?
    (Problem I’m facing is the activity in A has 3 buttons so I want to relaunch it either by deleting it and making new intent OR making the same entry in stack to start again so that depending on conditions it will display 1 button)

Thanks in advance.

  • 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-01T06:13:26+00:00Added an answer on June 1, 2026 at 6:13 am

    Answer for last qn:
    Use startActivityForResult to start the Activity B and override onActivityForResult in Activity A. onActivityResult will be called When the Activity B is finished/exited.
    You can set the visibility of the Buttons to GONE/INVISIBLE inside the onActivityResult.

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

Sidebar

Related Questions

I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I used javascript for loading a picture on my website depending on which small
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I need to clean up various Word 'smart' characters in user input, including but

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.