大家帮我看看android的错误

yuanye 发布于 2012/06/27 12:13
阅读 1K+
收藏 0
06-27 12:03:09.920: DEBUG/AndroidRuntime(349): Shutting down VM
06-27 12:03:09.920: WARN/dalvikvm(349): threadid=1: thread exiting with uncaught exception (group=0x40015560)
06-27 12:03:10.019: ERROR/AndroidRuntime(349): FATAL EXCEPTION: main
06-27 12:03:10.019: ERROR/AndroidRuntime(349): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.CALL dat=112 }
06-27 12:03:10.019: ERROR/AndroidRuntime(349):     at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1409)
06-27 12:03:10.019: ERROR/AndroidRuntime(349):     at android.app.Instrumentation.execStartActivity(Instrumentation.java:1379)
06-27 12:03:10.019: ERROR/AndroidRuntime(349):     at android.app.Activity.startActivityForResult(Activity.java:2827)
06-27 12:03:10.019: ERROR/AndroidRuntime(349):     at android.app.Activity.startActivity(Activity.java:2933)
06-27 12:03:10.019: ERROR/AndroidRuntime(349):     at itcast.com.AndroidActivity$MyOnClickListener.onClick(AndroidActivity.java:36)
06-27 12:03:10.019: ERROR/AndroidRuntime(349):     at android.view.View.performClick(View.java:2485)
06-27 12:03:10.019: ERROR/AndroidRuntime(349):     at android.view.View$PerformClick.run(View.java:9080)
06-27 12:03:10.019: ERROR/AndroidRuntime(349):     at android.os.Handler.handleCallback(Handler.java:587)
06-27 12:03:10.019: ERROR/AndroidRuntime(349):     at android.os.Handler.dispatchMessage(Handler.java:92)
06-27 12:03:10.019: ERROR/AndroidRuntime(349):     at android.os.Looper.loop(Looper.java:123)
06-27 12:03:10.019: ERROR/AndroidRuntime(349):     at android.app.ActivityThread.main(ActivityThread.java:3683)
06-27 12:03:10.019: ERROR/AndroidRuntime(349):     at java.lang.reflect.Method.invokeNative(Native Method)
06-27 12:03:10.019: ERROR/AndroidRuntime(349):     at java.lang.reflect.Method.invoke(Method.java:507)
06-27 12:03:10.019: ERROR/AndroidRuntime(349):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
06-27 12:03:10.019: ERROR/AndroidRuntime(349):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
06-27 12:03:10.019: ERROR/AndroidRuntime(349):     at dalvik.system.NativeStart.main(Native Method)
06-27 12:03:10.039: WARN/ActivityManager(73):   Force finishing activity itcast.com/.AndroidActivity
06-27 12:03:10.590: WARN/ActivityManager(73): Activity pause timeout for HistoryRecord{40650c90 itcast.com/.AndroidActivity}
06-27 12:03:22.510: WARN/ActivityManager(73): Activity destroy timeout for HistoryRecord{40650c90 itcast.com/.AndroidActivity}
06-27 12:05:52.919: INFO/Process(349): Sending signal. PID: 349 SIG: 9
06-27 12:05:53.019: INFO/ActivityManager(73): Process itcast.com (pid 349) has died.
06-27 12:05:53.029: ERROR/InputDispatcher(73): channel '407101e0 itcast.com/itcast.com.AndroidActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x8
加载中
0
红薯
红薯

ActivityNotFoundException

没有在 AndroidManifest.xml 定义 Activity 吧?

0
迷途d书童
迷途d书童
你这代码贴出来,真不知道从何看起。至少也要用个代码高亮啊。
android.content.ActivityNotFoundException - 没有找到Activity
AndroidActivity$MyOnClickListener.onClick(AndroidActivity.java:36) - 36行代码里的那个Activity没有在AndroidManifest.xml里注册吧。
0
拉风的道长
拉风的道长
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.CALL dat=112 }
这个不对。。隐士启动的intent,应该是你的data的格式不对吧。。仔细看看。
0
z
zenggf1991

顶楼上的。 Uri.parse("tel:"+number);

  刚就是因为少加了tel:

0
老牟
老牟

引用来自“红薯”的答案

ActivityNotFoundException

没有在 AndroidManifest.xml 定义 Activity 吧?

肯定是
返回顶部
顶部