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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:21:16+00:00 2026-05-29T05:21:16+00:00

First question on Stack Overflow, apologies if it is not well formed. I am

  • 0

First question on Stack Overflow, apologies if it is not well formed.

I am developing a relatively complex tabbed app, and already had the basics set up before coming across information that ActivityGroup and TabActivity are deprecated, and the preferred model is to use views.

I have had no trouble using views, this is a question about architecture rather than syntax (which is why I haven’t posted any code). Specifically, how should I go about restructuring the app to use views instead of Intent launched Activities.

The app has five tabs; two hold a single layout, no problem there. The other three tabs are running an ActivityGroup with 2-5 different Activities (i.e. a tab running an activity for settings, where clicking each view starts a new Activity dealing that particular setting, pressing the back button returns you to the broader settings activity/view). If I were to keep each Tab as a TabActivity, it would still be fairly easy to change those internal transitions to views as opposed to separate Activities.

The main question is using ONLY views, no TabActivity/Activity group at all. The vast majority of the research I’ve done has been discussion about whether to use Activities or Views, or about specific syntax. I haven’t been able to gather a clear idea of how to actually MAKE the transition to views across the whole application.

  1. If I were to do so, wouldn’t the entire app now be running in a single Activity – the one hosting the tabbed layout?

  2. If (1) is true, how to manage this? Despite ActivityGroup being deprecated, all of the Android documentation still seems to state that it is preferred to use separate Activities for separate aspects of functionality–which makes sense. Did the Android development team simply decide that the costs to the stack and the device made the TabActivity implementation ineffective?

  3. If the application is running in a single Activity that manages different views for each tab (and then different views WITHIN a tab when necessary), should I have one single enormous onClick method to handle all clicks from any clickable view, handling input based on which view is active? Or should I register and de-register all of my Listeners programatically?

  4. With a single Activity, won’t any click listener or any broadcast receiver be running all of the time, consuming resources even when unnecessary?

  5. With a single Activity, the back button would exit the entire app from any point in its functionality. If I am using views, won’t I have to consistently override onBackPressed() and carefully manage the app behavior to force it to behave “like an Android app?”

  6. AM I THINKING ABOUT THIS COMPLETELY WRONG? It’s possible that I am unintentionally attempting to recreate ActivityGroup and TabActivity functionality using views instead, when I should be taking an entirely different design approach to using tabs and Views.

When the people at Google say we shouldn’t use activities as tabs anymore, and Mr. Mark Murphy so emphatically agrees, I’m inclined to believe. I simply haven’t been able to research-up a way to switch without resorting to recreating a lot of Activity functionality by hand (which would probably include a variety of dirty hacks).

Appreciation in advance for anyone willing to tackle such a vague and overwritten topic.

  • 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-29T05:21:17+00:00Added an answer on May 29, 2026 at 5:21 am

    Using Fragments is the new standard for performing tabbed style ui components, I think you must have just overlooked them because they are the missing piece to all your above questions. Good luck.

    Don’t forget that using the compatibility library brings Fragment support all the way back to 1.6.

    And here is an easy Google recommended tutorial on using Fragments within a TabHost.

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

Sidebar

Related Questions

Novice programmer asking first question on stack-overflow. I am writing an app for mac
this is my first question on Stack Overflow. This is not really a programming
This is my first question on Stack Overflow. Apologies in advance if I don't
First off - hello, this is my first Stack Overflow question so I'll try
I'm looking for a nice Stack Overflow-style answer to the first question in the old
First question on Stack overflow... I am a novice in C#, yet finding it
this is my first question on stack overflow, so be gentle. Let me first
Hey there guys, this is my first question on Stack Overflow. I figured this
This is my first question here on stack overflow. i need help on a
This is my first stack overflow quesiton, so if i'm not posting correctly, or

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.