RE60K
RE60K

Reputation: 621

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);

Upvotes: 1

Views: 676

Answers (2)

ρяσѕρєя K
ρяσѕρєя K

Reputation: 132972

start new activity as:

Intent mi = new Intent(Current_Activity.this,SQLView.class);

startActivity(mi);

Upvotes: 1

Nermeen
Nermeen

Reputation: 15973

The name used in the intent SQLVIEW is different from the one in the manifest 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);

Upvotes: 2

Related Questions