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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:42:57+00:00 2026-05-28T17:42:57+00:00

I am working on tab host application containing 4 tabs. Each tab has individual

  • 0

I am working on tab host application containing 4 tabs. Each tab has individual activity that lists items. on item click of each tab takes to another activity displaying details of clicked list item in same tab host screen layout.

If i press back button after clicking an item from tab host, the application exits. But i need to visit the previously reached list and tabs. How to achieve this? Thanks in Advance

This is my Sample Code –

ListAdapter adapter = new SimpleAdapter(this, mylist , R.layout.list, 
                new String[] { "title","shortdescription"}, 
                new int[] { R.id.titleTextView,R.id.descriptionTextView});
        ListView list = (ListView)findViewById(R.id.statutesListView);
        list.setAdapter(adapter);
list.setOnItemClickListener(new OnItemClickListener()
        {
            public void onItemClick(AdapterView<?> parent, View view, int position, long id) 
            {
                HashMap<String, String> hashMap = new HashMap<String, String>();
                hashMap = (HashMap<String, String>) parent.getItemAtPosition(position);
                String newstitle = hashMap.get("title");
                String newsdesc = hashMap.get("shortdescription");


                //Get the new Activity to tab.

                Intent intent = new Intent(getApplicationContext(), detailedview.class);
                Bundle bundle = new Bundle();
                bundle.putString("title", newstitle);
                bundle.putString("desc", newsdesc);
                intent.putExtras(bundle);
                View setview = getLocalActivityManager().startActivity("statutes", intent).getDecorView();
                setContentView(setview);
            }
        });
  • 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-28T17:42:58+00:00Added an answer on May 28, 2026 at 5:42 pm

    Check this link out and download sample code provided in it and let me know for more requirements

    multiple activities in single tab

    This code in this link also solves your problem

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

Sidebar

Related Questions

I'm working on a tab bar application and one of the tabs has a
I am working on a simple app tab-bar based application that has two views.
I'm working on adding a tab to an application, but the last two tabs
I use skeleton framework to sketch tabs inside IFRAME widget. Each tab has code
I have an application with various tabs (on a tabhost), each tab is an
I am working on a Facebook tab application. I am using asp.net MVC 2
I am having tab host with three tabs.In the first tab i am doing
Here i make 5 Tab buttons that are working proper but now i want
I'm working on a Firefox extension project that requires me to use the TAB
I am working on android 2.2, In a Application tab of android manifest provide

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.