Hi,

I have a small issue i hope someone will be able to help me.

Basically, I've a listactivity, and when the user clicks a line, it
starts a tabactivity.

The tabactivity starts with downloading a content in a separate thread
and when it's done, the runOnUI method is used to create the sub-tabs
accordingly to the downloaded data.

I works with the emulator on 2.2 and 2.3 but crashes with 2.1.

This is the resulting stack trace :

E/AndroidRuntime( 6306): Uncaught handler: thread main exiting due to
uncaught exception
E/AndroidRuntime( 6306): java.lang.RuntimeException: Unable to start
activity ComponentInfo{be.defimedia.android.walkawaremobile/
be.defimedia.android.walkawaremobile.ItemListActivity}:
java.lang.NullPointerException
E/AndroidRuntime( 6306):        at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2496)
E/AndroidRuntime( 6306):        at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2512)
E/AndroidRuntime( 6306):        at android.app.ActivityThread.access
$2200(ActivityThread.java:119)
E/AndroidRuntime( 6306):        at android.app.ActivityThread
$H.handleMessage(ActivityThread.java:1863)
E/AndroidRuntime( 6306):        at
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 6306):        at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 6306):        at
android.app.ActivityThread.main(ActivityThread.java:4363)
E/AndroidRuntime( 6306):        at
java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 6306):        at
java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 6306):        at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:860)
E/AndroidRuntime( 6306):        at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/AndroidRuntime( 6306):        at dalvik.system.NativeStart.main(Native
Method)
E/AndroidRuntime( 6306): Caused by: java.lang.NullPointerException
E/AndroidRuntime( 6306):        at
be.defimedia.android.walkawaremobile.ItemListActivity.onCreate(ItemListActivity.java:
75)
E/AndroidRuntime( 6306):        at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047)
E/AndroidRuntime( 6306):        at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2459)
E/AndroidRuntime( 6306):        ... 11 more

Does anyone has an idea how I can do that for Android 2.1 ? Thanks a
lot.

Best regards

-- 
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