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. Only one line of output with DataInputStream.readLine() in android

Hi group,

I use the following code in a java-program on my desktop with sun-
jdk- to read a html file on my webserver. I get several lines
of output as expected. But when I use it in an android-app, the whole
html file is read in only one line.

Where could be the difference between the desktop and android
implementation? Do I have to change something like the encoding or
linebreak character?

URL url = new URL("http://mysite.intern/test.html");
DataInputStream dis = new DataInputStream(new BufferedInputStream
        while ((s = dis.readLine()) != null){



2. no root access.. how to put file...

I am not able to understand one simple issue.. if there is no root
access to file system even to the user who owns the phone then why on
earth would the dev guide include commands like

adb push <local>  sdcard .... when the sdcard of emulator is read
only.. Is this some kind of mockery or sarcasm with the users?????


3. Listener to a socket

4. How can I disable the data connection?

5. Picture Application Conflicts? (may be duplicate, third attempt to post)

6. Picture Taking Application (may be duplicate posting)

7. reading from url.openstream() misses EOL in android