Android Emulation vs Android G1 execution

by HowlettAndroid » Wed, 29 Apr 2009 02:03:04 GMT


Sponsored Links
 Hello,
         I've been developing an application and have recently tried
to port it onto a G1. The application was tested in the Android
emulator and performed excellently however when running on the G1
sometimes multiple screens appeared where a single screen should be
present. Any ideas how to fix this?

Cheers
HowlettAndroid
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Change Tab Background <selector>

Hi guys,

a simple question: how to change the TabBackground in the different
states (not the icon!) ?

my files:

tabindicator.xml

<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_focused="false"
      android:state_selected="false"
      android:state_pressed="false"
      android:drawable="@drawable/tab_focus"/>
<item android:state_focused="false"
      android:state_selected="true"
      android:state_pressed="false"
      android:drawable="@drawable/tab_focus"/>
<item android:state_focused="true"
      android:state_selected="false"
      android:state_pressed="false"
      android:drawable="@drawable/tab_focus"/>
<item android:state_focused="true"
      android:state_selected="true"
      android:state_pressed="false"
      android:drawable="@drawable/tab_focus"/>
<item android:state_pressed="true"
      android:drawable="@drawable/tab_press"/>
</selector>

where should i call the xml file above???

i tried it in the TabWidget as src, but it doesn't work:

<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@android:id/tabhost"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <LinearLayout
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">
        <TabWidget
            android:id="@android:id/tabs"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:src="@layout/tabindicator"> // look here
        </TabWidget>
        <FrameLayout
            android:id="@android:id/tabcontent"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent">
        </FrameLayout>
    </LinearLayout>
</TabHost>

So i tried to use a own theme:

<?xml version="1.0" encoding="utf-8"?>
<resources>
        <style name="tab" parent="android:Theme.Light">
                <item name="android:tabWidgetStyle">@style/tabindicatorstyle</
item>
        </style>
        <style name="tabindicatorstyle" parent="@android:style/
Widget.TabWidget">
                <item name="android:???">@layout/tabindicator</item>
        </style>
</resources>

but i don't know, which resource i should use instead of "???"...

can anyone help me?

many thanks in advancde!

king regards!

--~--~---------~--~----~------------~-------~--~----~

2. How to debug crash on rotate

I have an application that crashes when the phone is rotated.
It is based on the quickconnect framework.
Sorry for the vagueness of this  message, but how would I begin to
debug what is happening?
What should I look for? How do I gather a trace?

It seems the crash comes at the onSuspend event.

Thanks for any ideas.

-Mike

--~--~---------~--~----~------------~-------~--~----~

3. Still no paid apps in Android Market for Belgium

4. Solution suggestions

5. Still no paid apps in Android Market for Belgium

6. WebView Catch 22 - Same Window, Except For New Domain]

7. intent filter issue