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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:58:10+00:00 2026-05-31T05:58:10+00:00

Is it possible to create a Dialog that has Tab s? If possible, by

  • 0

Is it possible to create a Dialog that has Tabs?

If possible, by selecting one of the Tabs I have to call an Activity, is it possible to pass values ​​through a Bundle?

  • 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-31T05:58:11+00:00Added an answer on May 31, 2026 at 5:58 am

    you can use tabHost class of android for that purpose.
    http://developer.android.com/reference/android/widget/TabHost.html

    in the onItemClick in the list, retrieve the customer name and put it in the intent and call the class that expends tabActivity like this,

    Intent intent = new Intent(FirstActivity.this,SecondActivity.class);
    Bundle b = new Bundle();
    b.putString("name", name);
    intent.putExtras(b);
    startActivity(intent);
    finish();
    

    at the tab activity remove the data from bundle

    Resources res = getResources(); // Resource object to get Drawables
        TabHost tabHost = getTabHost(); // The activity TabHost
        TabHost.TabSpec spec; // Resusable TabSpec for each tab
        Intent intent; // Reusable Intent for each tab
    
        // Create an Intent to launch an Activity for the tab (to be reused)
        intent = new Intent().setClass(this, firsttabActivity.class);
        // Initialize a TabSpec for each tab and add it to the TabHost
        spec = tabHost.newTabSpec("first").setIndicator("first", res.getDrawable(R.drawable.ic_tab_shuffle)).setContent(intent);
        tabHost.addTab(spec);
    
        // Do the same for the other tabs
        intent = new Intent().setClass(this, secondtabActivity.class);
        spec = tabHost.newTabSpec("second").setIndicator("second", res.getDrawable(R.drawable.ic_tab_shuffle)).setContent(intent);
        tabHost.addTab(spec);
    

    now u can pass the customer name along with the intents in the tab and make the activities extract it and use your own logic to use customer name to retrieve customers details.
    i dont know if there is any more effecient way to do it. this just happened to come to my mind first.
    i hope it helps.

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

Sidebar

Related Questions

We have a WPF application that has a print preview dialog. When we create
I want to create an InstallShield Project that has a custom dialog containing a
Possible Duplicate: Can't create handler inside thread that has not called Looper.prepare() inside AsyncTask
I have a View that has the ability to both create and edit an
I want to create a dialog box that resembles the one created with GetOpenFileDialog.
Would it be possible to create a modal dialog box with DialogBox(Param) that blocks
I need create custom dialog and put JPanel into it. Is it possible?
Is it possible to create federated Subversion servers? As in one server at location
Is it possible to create a trigger that will not be in a transaction?
Is it possible to create Selenium tests using the Firefox plugin that use randomly

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.