ActivityNotFoundException but i've declared in manifest

1.4k views Asked by At

my error is

E/AndroidRuntime(11101): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.hellolinear/java.text.Normalizer$Form}; 
have you declared this activity in your `AndroidManifest.xml`?

but in my manifest code is:

  <activity android:name=".Form"
              android:label="@string/app_name">
        <intent-filter/>
    </activity>

can anyone help me?

6

There are 6 answers

1
rupali mandge On

Check whether the activity is in the root package. Otherwise mention the package path while declaring in manifest file.

<activity
            android:name="com.example.smstracking.MainActivity"
           >
        </activity>
0
arnefm On

Perhaps you the package name is incorrect? Try specifying the full package name like this:

<activity android:name="com.example.hellolinear.Form"
android:label="@string/app_name">
<intent-filter/>
</activity>

The correct way to this, however, would be to add the package name like this tou your manifest:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.hellolinear"
android:versionCode="1"
android:versionName="1.0.0" >
0
Sharad Mhaske On

at least one activity must contain with intent filter that contain action as action.MAIN and category as Launcher as per my knowledge.Hope this helps as you haven't provided the intent filter in your manifest.

0
A.R. On

Your Package name is not written correctly. Your Code:

<activity 
   android:name=".Form"
   android:label="@string/app_name">
        <intent-filter/>
</activity>

Instead of above, write this:

<activity 
    android:name="your package name.Form"    // eg: android:name="com.example.myapp.Form"
    android:label="@string/app_name">
        <intent-filter/>
    </activity>
0
hemantsb On

If non of above works, then

  1. uninstall app from your device
  2. restart eclipse( if you are using it, otherwise other IDE)
  3. clean your project
0
Ishvar Kikani On
  <activity android:name="your package name.Your Activity Name">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>