android程序在模拟机上运行,出现“The application has stopped unexpectedly“,详细log信息如下

05-1113:12:43.132:D/AndroidRuntime(519):ShuttingdownVM05-1113:12:43.132:W/dalvikvm(51... 05-11 13:12:43.132: D/AndroidRuntime(519): Shutting down VM
05-11 13:12:43.132: W/dalvikvm(519): threadid=1: thread exiting with uncaught exception (group=0x40015560)
05-11 13:12:43.252: E/AndroidRuntime(519): FATAL EXCEPTION: main
05-11 13:12:43.252: E/AndroidRuntime(519): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.jia.test/com.jia.test.PhoneRecordActivity}: java.lang.NullPointerException
05-11 13:12:43.252: E/AndroidRuntime(519): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1569)
05-11 13:12:43.252: E/AndroidRuntime(519): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
05-11 13:12:43.252: E/AndroidRuntime(519): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
05-11 13:12:43.252: E/AndroidRuntime(519): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
05-11 13:12:43.252: E/AndroidRuntime(519): at android.os.Handler.dispatchMessage(Handler.java:99)
05-11 13:12:43.252: E/AndroidRuntime(519): at android.os.Looper.loop(Looper.java:123)
05-11 13:12:43.252: E/AndroidRuntime(519): at android.app.ActivityThread.main(ActivityThread.java:3683)
05-11 13:12:43.252: E/AndroidRuntime(519): at java.lang.reflect.Method.invokeNative(Native Method)
05-11 13:12:43.252: E/AndroidRuntime(519): at java.lang.reflect.Method.invoke(Method.java:507)
05-11 13:12:43.252: E/AndroidRuntime(519): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
05-11 13:12:43.252: E/AndroidRuntime(519): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
05-11 13:12:43.252: E/AndroidRuntime(519): at dalvik.system.NativeStart.main(Native Method)
05-11 13:12:43.252: E/AndroidRuntime(519): Caused by: java.lang.NullPointerException
05-11 13:12:43.252: E/AndroidRuntime(519): at android.content.ContextWrapper.getPackageName(ContextWrapper.java:120)
05-11 13:12:43.252: E/AndroidRuntime(519): at android.content.ComponentName.<init>(ComponentName.java:75)
05-11 13:12:43.252: E/AndroidRuntime(519): at android.content.Intent.<init>(Intent.java:2702)
05-11 13:12:43.252: E/AndroidRuntime(519): at com.jia.test.PhoneRecordActivity.<init>(PhoneRecordActivity.java:16)
05-11 13:12:43.252: E/AndroidRuntime(519): at java.lang.Class.newInstanceImpl(Native Method)
05-11 13:12:43.252: E/AndroidRuntime(519): at java.lang.Class.newInstance(Class.java:1409)
05-11 13:12:43.252: E/AndroidRuntime(519): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
05-11 13:12:43.252: E/AndroidRuntime(519): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1561)
05-11 13:12:43.252: E/AndroidRuntime(519): ... 11 more
展开
 我来答
郝子琪
2012-05-12 · TA获得超过1746个赞
知道大有可为答主
回答量:1579
采纳率:0%
帮助的人:1470万
展开全部
PhoneRecordActivity 这个Activity在初始化的时候出现了空指针异常,检查PhoneRecordActivity.java的16行。
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式