[英]Error android.content.ActivityNotFoundException
i'm getting error 我收到了错误
android.content.ActivityNotFoundException
detailed 详细
No activity found to handle Intent{com.alpha.beta.SQLVIEW}
even though in my manifest file i have : 即使在我的清单文件中,我有:
<activity
android:name=".SQLView"
android:label="@string/title_activity_app" >
<action android:name="com.alpha.beta.SQLVIEW" />
<category android:name="android.intent.category.DEFAULT" />
</activity>
plus my intent looks like: 加上我的意图看起来像:
Intent mi = new Intent("com.alpha.beta.SQLVIEW");
startActivity(mi);
The name used in the intent SQLVIEW is different from the one in the manifest SQLView .. 意图SQLVIEW中使用的名称与清单SQLView中的名称不同。
in the intent: 意图:
Intent mi = new Intent("com.alpha.beta.SQLVIEW");
in the manifest: 在清单中:
android:name=".SQLView"
They should be the same, you can also use the intent this way.. 它们应该是一样的,你也可以这样使用意图..
Intent mi = new Intent(this, SQLView.class);
startActivity(mi);
start new activity as: 开始新的活动:
Intent mi = new Intent(Current_Activity.this,SQLView.class);
startActivity(mi);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.