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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:59:58+00:00 2026-05-26T07:59:58+00:00

I have two similar question, 1. I have a TabActivity, and when I select

  • 0

I have two similar question,

1.
I have a TabActivity, and when I select one specific tab I want to display one of two candidates activities. And it depends on run-time. i.e. I want to display two different activity in one tab dynamically due to different mode.

For more detail description,
It’s like a social platform, user may belong to a group or not.
If he belongs to a group, when he select “GroupTab”, he can see a activity page for group info.

If he does not belong to any group, when he select “GroupTab”, he can see a list of all available groups.

He can join or quit a group dynamically, so the GroupTab’s content is depend on run-time.

2.
When I press a button in a activity (which is in a Tab), I want to change to next activity, and that activity could go backward to original activity too. (All activities should be under the Tab)

—

I’ve seen some method using ActivityGroup, and since it is deprecated, I’m looking for some other alternative way to implement that.
Any solution?

  • 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-26T07:59:59+00:00Added an answer on May 26, 2026 at 7:59 am

    EDIT: For your first question. I’m thiking that you can use the OnTabChangeListener and then check what tab is currently selected and based on that check if a user belongs to a group or not.

    For question two, Fragment is the way to go. There’s a post on it here: http://android-developers.blogspot.com/2011/02/android-30-fragments-api.html

    EDIT: You will have to install the compatibility package to use Fragments in Android < 3.0

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

Sidebar

Related Questions

The question is similar to this one: How to display a content in two-column
Newbie question... So I have two activities, Cherry and Apple, and each one has
I have two similar codes. The first one works as expected. urlpatterns = patterns('',
My question is similar to this , but I have two strings (as char
I have two controls. The XAML's are big and very similar. One difference is
I have two similar tables which have data I need to display in a
Similar question here but this is slightly different... I have two tables that I
A similar question was posted as question:is-there-a-way-to-use-multiple-wsit-client-xml.. . I have two different WS-Security enabled
Hi a grep regex question I think I have many cases of two similar
I have two tables with similar columns - let's say table A with column

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.