Hi,  can some one help me with the following bugs?

1.  The CameraPreview bug seems to be well understood:  the camera
needs to be in landscape mode to have the rotation right.  So right
now I am stuck because I would rather have google fix the rotation bug
instead of me having to tap into the OrientationSensor and rotate the
SurfaceHolder myself because that could cause problems should google
fixed the bug themselves.

2.  In portrait mode, TabHost works only up to creation of 5 tabs.
Starting at the 6th tab, a vertical  line runs into the Tab, causing a
graphical glitch.  As you add more tabs, the vertical graphics glitch
grows until it fills the entire tab area, then it looks like the tab
is doing fine again(after about 10 tabs).   I am not sure if it is the
icons I am using for the tabs(32x32 PNG format) that's causing the
problem.   If you switch to landscape mode, the glitch goes away since
it is wider than portrait mode.

   code:

    tabHost.addTab(tabHost.newTabSpec("tab_1")
                .setIndicator("1")
                .setContent(new Intent(this, tab1.class)));

        tabHost.addTab(tabHost.newTabSpec("tab_Camera")
                .setIndicator("2")
                .setContent(new Intent(this, CameraPreview.class)));

        tabHost.addTab(tabHost.newTabSpec("tab_3")
                .setIndicator("3")
                .setContent(new Intent(this, tab3.class)));

        tabHost.addTab(tabHost.newTabSpec("tab_4")
                .setIndicator("4")
                .setContent(new Intent(this, tab4.class)));

        tabHost.addTab(tabHost.newTabSpec("tab_5")
                .setIndicator("5")
                .setContent(new Intent(this, tab5.class)));

        tabHost.addTab(tabHost.newTabSpec("tab_6")
                .setIndicator("6")
                .setContent(new Intent(this, tab6.class)));

        tabHost.addTab(tabHost.newTabSpec("tab_7")
                .setIndicator("7")
                .setContent(new Intent(this, tab7.class)));

3.  If you set the intent to launch the CameraPreview class under Tab
1, then the CameraPreview activity(taken from CameraPreview from API
Demo) works, with the rotation problem.  If you set the CameraPreview
class under any other Tabs, the Preview wouldn't start until you
select the Camera Tab and open the keyboard to force switch to
landscape mode, after which the Preview starts.  Seems that TabHost
isn't starting the onStop() and onResume() of the sub Activities
unless it is the first Tab.

4.  TabHost does not have API(at least I couldn't find it) to make the
width and height of the Tabs smaller.  In portrait mode, it is decent
sized.(although, I still want it to be about half the height).  Once
it is switched to the landscape mode by opening the keyboard, TabHost
literally takes about 30% of the available touchscreen real estate,
which doesn't leave much room for your application.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to