> That does not appear to be the full log and, more importantly, shows nothing
> about a null pointer exception.
The complete log:
I/ActivityManager( 51): Starting activity: Intent
{ act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER] flg=0x10200000
cmp=com.faiters.myapp/.Home }
I/ActivityManager( 51): Start proc com.faiters.myapp for activity
com.faiters.myapp/.Home: pid=253 uid=10022 gids={1015}
D/AndroidRuntime( 253): Shutting down VM
W/dalvikvm( 253): threadid=3: thread exiting with uncaught exception
(group=0x4001aa28)
E/AndroidRuntime( 253): Uncaught handler: thread main exiting due to
uncaught exception
E/AndroidRuntime( 253): java.lang.RuntimeException: Unable to start
activity ComponentInfo{com.faiters.myapp/com.faiters.myapp.Home}:
java.lang.NullPointerException
E/AndroidRuntime( 253): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2401)
E/AndroidRuntime( 253): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2417)
E/AndroidRuntime( 253): at android.app.ActivityThread.access
$2100(ActivityThread.java:116)
E/AndroidRuntime( 253): at android.app.ActivityThread
$H.handleMessage(ActivityThread.java:1794)
E/AndroidRuntime( 253): at
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 253): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 253): at
android.app.ActivityThread.main(ActivityThread.java:4203)
E/AndroidRuntime( 253): at
java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 253): at
java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 253): at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:791)
E/AndroidRuntime( 253): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
E/AndroidRuntime( 253): at dalvik.system.NativeStart.main(Native
Method)
E/AndroidRuntime( 253): Caused by: java.lang.NullPointerException
E/AndroidRuntime( 253): at com.faiters.myapp.Home.onCreate(Home.java:
36)
E/AndroidRuntime( 253): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1123)
E/AndroidRuntime( 253): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2364)
E/AndroidRuntime( 253): ... 11 more
I/Process ( 51): Sending signal. PID: 253 SIG: 3
I/dalvikvm( 253): threadid=7: reacting to signal 3
I/dalvikvm( 253): Wrote stack trace to '/data/anr/traces.txt'
When I import android.content.ContentResolver the app work. Now if I
delete that import still work (WTF). The error appears if I add a new
resource style without that import. Do you have any idea why?
--
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