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. Execute external application as root for 30 seconds and get output in a text file

I need to start an executable from the source code of a
android application. The peculiarity is that the executable needs
you are root user and I just want to run for
about 30 seconds. If I run it from the terminal, when
start it begins to show lines of the result of
running on standard output. In my case I want when
run for 30 seconds, storing that output will
standard text file. After the 30 seconds would
kill the running process.  Sometimes I've got "permission denied" when
I've tried execute the external application that must access to a
device /dev/xxxx. Other times I've got an exception with the reference
"bad file name" or "working directory"... So, I'm so lost as Jack in
Lost.

Thanks a lot!

-- 

2. Record media - exception : Prepare failder (IOexception)

Helly there.. i need help ( . im trying to record video from camers
( yeah, im tested it in emulators v2.1 , but i have phone for full
tested )
here my code

String name = Environment.getExternalStorageDirectory()+"/
FileIsCreatedButSizeisNULL.mp4";

        recorder = new MediaRecorder();
          recorder.setPreviewDisplay(holder.getSurface());
                ///recorder.setCamera(camera);
                 recorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER);
        
recorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
        
recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
        
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
        
recorder.setVideoEncoder(MediaRecorder.VideoEncoder.MPEG_4_SP);


                     recorder.setMaxDuration(10000);
                     recorder.setVideoSize(320, 240);
                         recorder.setVideoFrameRate(15);

                         recorder.setOutputFile(name);
                         recorder.prepare(); ////////// hereeeeeeee exception  -
IOException prepare failed
                         recorder.start();

        alert("work ?");


what wrong ?? why i have always  prepare failed (((
in dev guides i reading about  - record not working in emulators - but
on real phone this erorr too

Please help .. i need help  ^(((((((

P.s. regards, Peter

-- 

3. In-App payment optionss

4. Content Values issues

5. Youtube Vidoeview

6. Resources.getDimension() at different densities

7. /dev/cpuctl/fg_boost cgroups significance