File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes TabHost repeating tab content Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "TabHost repeating tab content" Watch "TabHost repeating tab content" New topic
Author

TabHost repeating tab content

Marc West
Greenhorn

Joined: Dec 19, 2011
Posts: 5
Hi,

I am trying to create a TabHost gui and I am experience a weird issue where every tab after the 1st (i tried adding more tabs) contains the content of the last tab that is added.




Below are the xml of the tabs, but essentially it is text, button, text. I am seeing text, button, button when I run the app. Would appreciate suggestions.





Marc West
Greenhorn

Joined: Dec 19, 2011
Posts: 5
For anyone who has the same issue: the problem was reusing Intent. I don't know why. But using a new one for each tab sorted this problem.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: TabHost repeating tab content
 
Similar Threads
Putting tabs below the screen
list view problem
Layout question.
Layouts, bottom position
when i change android:orientation to horizontal it shows blank screen