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. Sharing SQLite Database between activities

Hey everybody:

I'm in the middle of writing myself an app and have run into a problem
concerning the use of the same SQLite database within multiple
activities.

I have one activity that is used to input and store data and multiple
activities that need to then read that data.  Within the first
activity, it has no problem inputting the data into the database, but
when I go to have the other activity read the data, it tells me the
database is empty.  Obviously I'm doing something wrong in my handling
of this shared database.

Right now, I have a DataHelper class that handles everything.  In each
activity, I create a DataHelper object which then calls the
openOrCreateDatabase() method.  I then close the database upon exiting
the activity.  Obviously this isn't the right way to do it.

So, my questions is, what is the correct way to set up an SQLite
database in an Android application and then access it in multiple
activities?

Any help you could give would be a huge help.  Thanks!

-- 

2. ota update

numpang nanya..barusan htc hero dpt notifikasi ota update tp kepencet
"update later". gmn y caranya biar bs update..makasih para suhu..

-- 
"Indonesian Android Community [id-android]" 

3. Contact manager

4. Help - Kernel branches omap, common branches are not syncing for fresh downloads?

5. Package com.google.android.gtalkservice importing problem

6. OOT: How to hold the new iphone

7. AIDL, Binder, ResultReceiver, and Performance