Good afternoon,
I have an activity that calls another. The code is as follows:
Intent i = new Intent(getApplicationContext(),Menu.class);
startActivity(i);
When I run the application get the following error:
android.content.ActivityNotFoundException: Unable to find explicit activity class {proyecto.uvigo/android.view.Menu}; have you declared this activity in your AndroidManifest.xml?
I do not understand what is wrong because I have already stated, the Activity Menu on the AndroidManifest:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="proyecto.uvigo"
android:versionCode="1"
android:versionName="1.0">
<uses-permission android:name="android.permission.INTERNET" />
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".Inicio"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<uses-permission android:name="android.permission.INTERNET" />
<activity android:name=".Login"></activity>
<activity android:name=".Menu"></activity>
<activity android:name=".RecuperarPass"></activity>
<activity android:name=".Auxiliar"></activity>
<activity android:name=".MiPerfil"></activity>
<activity android:name=".CambiarPass"></activity>
</application>
Thanks!
I am not sure but there is something wrong with
Unable to find explicit activity class {proyecto.uvigo/android.view.Menu};. Whyandroid.view.Menu?. Please, check if import android.view.Menu class. If yes, use thisor import
proyecto.uvigo.Menuinstead ofandroid.view.Menu.