I Am Getting Activity Not Found Error
I'm getting an Exception 'Activity Not Found'.I've an activity named: public class ProfileForm extends Activity implements View.OnClickListener. and in the androidmanifest.xml I h
Solution 1:
Try
<activityandroid:name=".ProfileForm"android:label="Profile Form Activity" ></activity>
Or check twice your package name.
Note: use @string resources on android:label="Profile Form Activity"
Solution 2:
again config your manifest file use this code and change the activity name.
<manifestxmlns:android="http://schemas.android.com/apk/res/android"package="com.example.sample"android:versionCode="1"android:versionName="1.0" ><uses-sdkandroid:minSdkVersion="8"android:targetSdkVersion="21" /><applicationandroid:allowBackup="true"android:icon="@drawable/ic_launcher"android:label="@string/app_name"android:theme="@style/AppTheme" ><activityandroid:name=".MainActivity"android:label="@string/app_name" ><intent-filter><actionandroid:name="android.intent.action.MAIN" /><categoryandroid:name="android.intent.category.LAUNCHER" /></intent-filter></activity></application></manifest>
Post a Comment for "I Am Getting Activity Not Found Error"