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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:22:19+00:00 2026-06-06T11:22:19+00:00

I can’t seem to find a proper way to move on from ActivityGroup. I’ve

  • 0

I can’t seem to find a proper way to move on from ActivityGroup.
I’ve seen Separate Back Stack for each tab in Android using Fragments

Take the following:

  • An application with 4 tabs
  • Each tab needs to have it’s own back stack (similar to iOS behaviour, yes)
  • The application may be tuned for tablets, so the back stack needs to hold Activities

Once you need to develop for tablets, the Activities will contain multiple fragments. Having a stack of Fragments won’t work because Fragments can’t be nested, so the stack has to contain Activities.

I can’t seem to find a way around this other than to continue to use ActivityGroup.

Thanks!

EDIT 1:
A concrete example.

Handheld:

 TAB 1 -> Activity 1A (Fragment 1A) 
       -> Activity 1B (Fragment 1B)  
       -> Activity 1C (Fragment 1C)

Tablet:

 TAB 1 -> Activity 1A (Fragment 1A and 1B)
       -> Activity 1C (Fragment 1C)

@beyerss I don’t think I can rely on FragmentTransactions consistently. I could add multiple fragments in a Transaction as you mentioned, but the Activity layout may not be consistent. Hence I’m still seeing the need for ActivityGroups.

  • 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-06T11:22:20+00:00Added an answer on June 6, 2026 at 11:22 am

    Is there a reason you can’t use a FragmentTransaction which can be added to the back stack? If you have three fragments on a screen and they all change at the same time this would require three FragmentTransactions but the fragments would not be nested so it should work.

    In order to get each tab to have it’s own back stack you might need to be smart about managing it yourself for each tab. i.e. use an array of each FragmentTransaction that is put on the back stack and if the user switches tabs remove all of the FragmentTransactions that were stored (but still keep track of them) then when the user returns to the tab add them back on the back stack in the same order.

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

Sidebar

Related Questions

Can anyone enlighten me to a way I can Highlight the content of an
Can anybody tell what is the best(easy) way to sort the following string 'index'
Can't figure out how to do this in a pretty way : I have
Can't seem to figure out what's wrong with the simple getJSON call below. It's
Can't work out a way to make an array of buttons in android. This
Can anyone help, how to retrieve exactly 2nd row from the table in oracle?
Can any one post the details to develop restful web service in .net from
Does anyone know how can I replace this 2 symbol below from the string
I am currently running into a problem where an element is coming back from
Can i get the source code for a WAMP stack installer somewhere? Any help

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.