android 这是报的什么错啊 哪位高手教小弟一下

   阅读
android 这是报的什么错啊 谁教小弟一下
12-31 11:03:56.050: ERROR/AndroidRuntime(3471): FATAL EXCEPTION: main
12-31 11:03:56.050: ERROR/AndroidRuntime(3471): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.saqdocument/com.android.dispaly.OpenPicture}: java.lang.NullPointerException
12-31 11:03:56.050: ERROR/AndroidRuntime(3471): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2787)
12-31 11:03:56.050: ERROR/AndroidRuntime(3471): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2803)
12-31 11:03:56.050: ERROR/AndroidRuntime(3471): at android.app.ActivityThread.access$2300(ActivityThread.java:135)
12-31 11:03:56.050: ERROR/AndroidRuntime(3471): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2136)
12-31 11:03:56.050: ERROR/AndroidRuntime(3471): at android.os.Handler.dispatchMessage(Handler.java:99)
12-31 11:03:56.050: ERROR/AndroidRuntime(3471): at android.os.Looper.loop(Looper.java:144)
12-31 11:03:56.050: ERROR/AndroidRuntime(3471): at android.app.ActivityThread.main(ActivityThread.java:4937)
12-31 11:03:56.050: ERROR/AndroidRuntime(3471): at java.lang.reflect.Method.invokeNative(Native Method)
12-31 11:03:56.050: ERROR/AndroidRuntime(3471): at java.lang.reflect.Method.invoke(Method.java:521)
12-31 11:03:56.050: ERROR/AndroidRuntime(3471): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
12-31 11:03:56.050: ERROR/AndroidRuntime(3471): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
12-31 11:03:56.050: ERROR/AndroidRuntime(3471): at dalvik.system.NativeStart.main(Native Method)
12-31 11:03:56.050: ERROR/AndroidRuntime(3471): Caused by: java.lang.NullPointerException
12-31 11:03:56.050: ERROR/AndroidRuntime(3471): at com.android.dispaly.OpenPicture.disp(OpenPicture.java:435)
12-31 11:03:56.050: ERROR/AndroidRuntime(3471): at com.android.dispaly.OpenPicture.onCreate(OpenPicture.java:159)
12-31 11:03:56.050: ERROR/AndroidRuntime(3471): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1069)
12-31 11:03:56.050: ERROR/AndroidRuntime(3471): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2751)
12-31 11:03:56.050: ERROR/AndroidRuntime(3471): ... 11 more


------解决方案--------------------
你程序里面有个地方报了空指针,导致Activity无法启动。那个OpenPicture.java是你自己写的吗?应该是159行报了空。
阅读