Question about TabHost implementation

by Meryl Silverburgh » Sat, 14 Mar 2009 01:52:13 GMT

Sponsored Links
 I have looked at TabHost code and I have a question.

Why it expects TabContent to be a FrameLayout? I see it casts
mTabContent to be FrameLayout.
Why TabContent can't be an instance of ViewGroup, but a FrameLayout?

Thank you.


Other Threads

1. Graphics Performance and


Not sure if this is too specific to be in the developer group, but I'm
still getting adjusted to the SDK (Which is awesome) so maybe someone
here can share their experience. Any help is greatly appreciated!

I've been testing the graphics performance of Android, and wrote an
implementation of "Conway's Game of Life" using a matrix of 8 by 8
pixel images. I used the standard Drawable class and rendering
approach found in the Lunar Lander game but found a noticeable lag in
rendering times. I made sure my logic code is performant, so I'm
ruling that out as the issue.

Is this simply due to the nature of the emulator's limitations?
Is there a faster approach to graphics (The built in OpenGL?)

My ultimate goal is to be able to draw onto a matrx of pixels
individually as fast as possible. (For a custom-screen simulation).

Again, any help is greatly appreciated, thank you!


2. What happens when network (GPRS) is not enabled, and you try to open connection?

Say, I'm opening connection to a website using URLConnection.  GPRS is
not enabled yet.  What will happen?  Will GPRS become enabled?  Will
user be notified and asked whether she wants to enable GPRS? Or will
an exception be thrown?

On current phones (like Nokia/Symbian), when GPRS is not enabled, and
an application tries to access the internet (e.g. Maps), user is
prompted to allow/deny the request.  Will similar happen on Android?



3. Call the default mediaplayer program in Android OS

4. Any MediaPlayer success?

5. UI Controls

6. sqlite create two tables onCreate...

7. About the IM to show the message received