简体   繁体   English

android.content.ActivityNotFoundException出错

[英]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.

相关问题 android.content.ActivityNotFoundException: - android.content.ActivityNotFoundException: android.content.activitynotfoundexception - android.content.activitynotfoundexception android.content.ActivityNotFoundException很多 - android.content.ActivityNotFoundException a lot StartActivity上的Android.Content.ActivityNotFoundException - Android.Content.ActivityNotFoundException at StartActivity Android错误:“ android.content.ActivityNotFoundException:未找到用于处理Intent的活动” - Android error : “android.content.ActivityNotFoundException: No Activity found to handle Intent” 如何解决android.content.ActivityNotFoundException错误中的致命异常 - How solve a Fatal Exception in android.content.ActivityNotFoundException Error android.content.ActivityNotFoundException:未找到处理意图错误的活动 - android.content.ActivityNotFoundException: No Activity found to handle Intent error 错误 android.content.ActivityNotFoundException:仅在极少数设备中 - Error android.content.ActivityNotFoundException: only in very few devices android.content.ActivityNotFoundException但在清单中声明 - android.content.ActivityNotFoundException but declared in Manifest android.content.ActivityNotFoundException,无法开始活动 - android.content.ActivityNotFoundException ,unable to start activity
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM