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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:36:39+00:00 2026-05-27T15:36:39+00:00

I am having a TabHost. One of the tabsconains ListActivity. When it is loaded

  • 0

I am having a TabHost.
One of the tabsconains ListActivity.
When it is loaded – user can search and items are populated in the list.

When user clicks on a ListViewItem a new Intent of a new TabHost is being created.
When user presses the BACK button, he gets back to the TabHost on the ListActivity (from where the new Inetnt was started)

The problem is that now the listview is empty……………..

How can I maintain it?
(I have 2 different listviews that it happens from – 1 is searcing on the local DB and haveing CursorAdapter (so have to maintain the cursor as well). The 2nd is query from the Web. so I just have some object that I display on the screen + IMAGES.

  • 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-27T15:36:40+00:00Added an answer on May 27, 2026 at 3:36 pm

    I’m not sure about this but this is probably because you are generating the contents of your list view dynamically. Try to overwrite onSaveInstanceState and then save the value of your list there. Then overwrite onRestoreInstanceState and reload your listview there.

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

Sidebar

Related Questions

I've got a TabHost application where the user can send an email from any
I am having an issue with using TabHost in a new Intent of type
I have one activity in which I am having one TabHost with two tabs.
Having just added a new button in my web application, I get an error
Having a list of 3-tuples : [(a, b, c), (d, e, f)] I want
having some trouble with hitTestObject and now Flash is telling me it can't convert
Having a duh moment trying to implement a new content page Here's the structure
Having some trouble passing values from one class to another. I basically have a
I'm having thoughts abut my current app. I have this TabHost class with two
I'm designed a TabHost and its having 3 TabSpec's so i need to add

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.