I'm getting a null pointer exception in TabHost.java whenever I start
my TabActivity by pressing the enter key or pressing the trackball on
the button that starts the activity.

So I've got a button called "start" that in its onClick handler will
start a TabActivity.  Tapping on the button starts the TabActivity
fine, however when I press the button using the "enter" key or the
trackball I get the following trap.

I've seen another thread related to this at
http://groups.google.com/group/android-developers/browse_thread/thread/d6633cda4d944d24/623583dc966c65f3?show_docid=623583dc966c65f3

My stack trace is below:

10-28 22:10:18.849: ERROR/AndroidRuntime(1078): Uncaught handler:
thread main exiting due to uncaught exception
10-28 22:10:18.849: ERROR/AndroidRuntime(1078):
java.lang.NullPointerException
10-28 22:10:18.849: ERROR/AndroidRuntime(1078):     at
android.widget.TabHost.onTouchModeChanged(TabHost.java:179)
10-28 22:10:18.849: ERROR/AndroidRuntime(1078):     at
android.view.ViewTreeObserver.dispatchOnTouchModeChanged
(ViewTreeObserver.java:591)
10-28 22:10:18.849: ERROR/AndroidRuntime(1078):     at
android.view.ViewRoot.ensureTouchModeLocally(ViewRoot.java:1877)
10-28 22:10:18.849: ERROR/AndroidRuntime(1078):     at
android.view.ViewRoot.performTraversals(ViewRoot.java:715)
10-28 22:10:18.849: ERROR/AndroidRuntime(1078):     at
android.view.ViewRoot.handleMessage(ViewRoot.java:1613)
10-28 22:10:18.849: ERROR/AndroidRuntime(1078):     at
android.os.Handler.dispatchMessage(Handler.java:99)
10-28 22:10:18.849: ERROR/AndroidRuntime(1078):     at
android.os.Looper.loop(Looper.java:123)
10-28 22:10:18.849: ERROR/AndroidRuntime(1078):     at
android.app.ActivityThread.main(ActivityThread.java:4203)
10-28 22:10:18.849: ERROR/AndroidRuntime(1078):     at
java.lang.reflect.Method.invokeNative(Native Method)
10-28 22:10:18.849: ERROR/AndroidRuntime(1078):     at
java.lang.reflect.Method.invoke(Method.java:521)
10-28 22:10:18.849: ERROR/AndroidRuntime(1078):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:791)
10-28 22:10:18.849: ERROR/AndroidRuntime(1078):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
10-28 22:10:18.849: ERROR/AndroidRuntime(1078):     at
dalvik.system.NativeStart.main(Native Method)

But with no word from the Android team.  Is this a framework issue?

Thanks
Lee
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
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