Android错误。找不到处理Intent的活动

时间:2012-01-08 23:15:02

标签: android android-manifest

我有这个问题,不知道如何解决它。 谢谢和问候。

01-08 22:55:10.442: W/dalvikvm(814): threadid=1: thread exiting with uncaught exception (group=0x409c01f8)

01-08 22:55:10.462: E/AndroidRuntime(814): FATAL EXCEPTION: main
01-08 22:55:10.462: E/AndroidRuntime(814): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.prueba.db.SQLView }
01-08 22:55:10.462: E/AndroidRuntime(814):  at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1512)
01-08 22:55:10.462: E/AndroidRuntime(814):  at android.app.Instrumentation.execStartActivity(Instrumentation.java:1384)
01-08 22:55:10.462: E/AndroidRuntime(814):  at android.app.Activity.startActivityForResult(Activity.java:3190)
01-08 22:55:10.462: E/AndroidRuntime(814):  at android.app.Activity.startActivity(Activity.java:3297)
01-08 22:55:10.462: E/AndroidRuntime(814):  at com.prueba.db.SQLiteExample.onClick(SQLiteExample.java:80)
01-08 22:55:10.462: E/AndroidRuntime(814):  at android.view.View.performClick(View.java:3511)
01-08 22:55:10.462: E/AndroidRuntime(814):  at android.view.View$PerformClick.run(View.java:14105)
01-08 22:55:10.462: E/AndroidRuntime(814):  at android.os.Handler.handleCallback(Handler.java:605)
01-08 22:55:10.462: E/AndroidRuntime(814):  at android.os.Handler.dispatchMessage(Handler.java:92)
01-08 22:55:10.462: E/AndroidRuntime(814):  at android.os.Looper.loop(Looper.java:137)
01-08 22:55:10.462: E/AndroidRuntime(814):  at android.app.ActivityThread.main(ActivityThread.java:4424)
01-08 22:55:10.462: E/AndroidRuntime(814):  at java.lang.reflect.Method.invokeNative(Native Method)
01-08 22:55:10.462: E/AndroidRuntime(814):  at java.lang.reflect.Method.invoke(Method.java:511)
01-08 22:55:10.462: E/AndroidRuntime(814):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
01-08 22:55:10.462: E/AndroidRuntime(814):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
01-08 22:55:10.462: E/AndroidRuntime(814):  at dalvik.system.NativeStart.main(Native Method)

2 个答案:

答案 0 :(得分:2)

您需要将SQLView声明为清单中的活动。

答案 1 :(得分:0)

要在清单中声明活动,您只需要以格式 -

键入它
<activity android:name=".Results" /> 
  • 在清单文件的XML中。

因此,如果活动是SQLView,那么它将是 -

<activity android:name=".SQLView" />