Skip to content Skip to sidebar Skip to footer

No Activity Found To Handle Intent When The Manifest Is Correct

I have been going over this for an hour and I cannot figure out the issue. I am trying to launch a new activity when a boolean value is true inside the ACTION_UP TouchEvent. publi

Solution 1:

Change this

IntentMainActivity=newIntent("com.example.shoottoiletpaper.MAINACTIVITY");

to

IntentMainActivity=newIntent("android.intent.action.MAINACTIVITY");

Solution 2:

Change

<actionandroid:name="android.intent.action.MAINACTIVITY" />

To

<actionandroid:name="android.intent.action.MAIN" />

Solution 3:

What is your main activity's class name? If it isn't MAINACTIVITY, you've got yourself a typo.

Change

IntentMainActivity=newIntent("com.example.shoottoiletpaper.MAINACTIVITY");

to

 Intent MainActivity = newIntent(this,MainActivity.class);

(or whatever your main activity is called). Case is important in Java.

And take a look at your manifest as well. (Look at the examples here.

You should change your line to read

<actionandroid:name="android.intent.action.MAIN"/>

Post a Comment for "No Activity Found To Handle Intent When The Manifest Is Correct"