How to insert a TabHost view inside a ViewFlipper ?

by DMT » Thu, 22 Apr 2010 13:40:52 GMT


Sponsored Links
 Folks, I was wondering if anyone has been able/knows how to include a
TabHost view inside a ViewFlipper view...

I've tried various ways to do this but keep getting a NulPtr exception
whenever the tabhost object is accessed at startup. It looks like
Viewflipper does exactly that : flips *view* objects. It knows nothing
directly of the concrete Java classes that are associated with the
views so the tab objects are always nulls.
Unfortunately, the tabhost needs to be data/object populated before it
is ever accessed, so this is the issue.
Is this analysis correct?

If so, is there any way around this? Or am I doing something wrong?
Thanks for any suggestions.

--



Other Threads

1. Tutorial on searching in MapView

Hey Guys,

Does anyone know of a tutorial or code example that shows how to use
the search functionality that works so well on the google maps but I
want to do something similar in my android app.  I saw a new cool app
called dinefinder where the app launches with a mapview that has the
pins laid out pointing to different restaurants that the user can
click and get additional information.  I wonder if anyone has code
samples on how to get the restaurant data from the map search?? Also,
I see that the Maps on the G1 has a Search and Directions menu options
and I wanted to see how to add something like that in my google app.
Does anyone know or any code samples for this??

Thanks,
BarbieDahl
--~--~---------~--~----~------------~-------~--~----~

2. About Java.io files

Hi,

is a package named 'Java.IO' that contains the
basic java classes related to Input/Output. But after downloading the
Android source code , I failed to find this
'Java.IO' package or classes. Can anybody please help me to find these
classes?

Thanks
--~--~---------~--~----~------------~-------~--~----~

3. How to initial SharedPreferences from an XML file in SD card

4. suggestion. replace onActivityResult(), Request Code and Result Codes with flexible callbacks

5. Mobile Developers Research Project asking for Android's opinion, by Carnegie mellon University

6. layout directories

7. Service will not stay running