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. How to get Streaming Videos?

Hi,
I am using latest Android version android-sdk-windows-1.5_r2.zip and
ADT-0.9.1 version.
Can anyone guide me how to get live video to play on emulator? I have
gone through many forums on this, however could not get any firm
response on successful RTSP or HTTP streaming of live feed.
Any response on this would be great help to beginner like me
Best Regards


--~--~---------~--~----~------------~-------~--~----~

2. Finding Device (and android version) from code

> How do I get the device (G1, magic, i7500, etc) programmically, as

Check out android.os.Build.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!



--~--~---------~--~----~------------~-------~--~----~

3. Problem while streaming amr file

4. Creating a daemon

5. Accessing java SIM card information from android

6. Where does the location of the database

7. Data Typists Needed! Work from home, Great Income!