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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:45:00+00:00 2026-06-03T23:45:00+00:00

(I know that Activity Groups and Tabs have been deprecated. I cannot redesign my

  • 0

(I know that Activity Groups and Tabs have been deprecated. I cannot redesign my app at the moment, so I want to finish it with the current design if possible.)

I have a TabActivity with three tabs, A, B, and C. Tab C is an ActivityGroup with two child activities, C1 and C2. C2 is always called from C1 and dismissed by setting the C1 View and restarting the C1 intent. All this works fine. My problem is that if the user selects the A or B tab while in the C2 activity, I want the C2 activity to cancel. The next time that the C Tab is selected, the C1 activity should display. Same thing if the user exits the application and re-enters it.

I have implemented the OnTabChangeListener(), so I know when a new tab is selected, and I can even tell if the C2 tab is active (or was before the tab changed). My question is how to cancel the C2 activity so that when the C tab is selected, the default C1 activity is started instead of returning to the previously active C2 tab.

  • 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-03T23:45:01+00:00Added an answer on June 3, 2026 at 11:45 pm

    Simply you can make use of your onPause() in Tab C and override it with the same code what you could have used of getting back from c2 to c1. Since onPause() will be called only when you come out of that particular tab, your activity group will be restored at the background, and when you get back to that Tab C you can see your C1 at the first place.

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

Sidebar

Related Questions

I know that finish() returns your activity back to your previous activity. Now I
I want to know that what will happen to my activity incase of an
I know that Java have its own garbage collection, but sometimes I want to
I know that I cannot pass parameters to the Activity constructor in android, but
i want to call getWriteableDatabase from within my Activity class i know that you
I know that similar questions have been asked, but having read through them it
I know that we can start new activity with the steps as follows :
I know that this sort of question has been asked here before, but still
I am a little new to android development. I know that network activity and
I have an activity that gets some data from the internet in background while

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.