How to declare the activity in manifest file?
The activity must be declared in the manifest file
in order to access by the system. The manifest file is an xml file included in
the application and default known as AndroidManifest.xml.
Open the file from project and edit the xml to add the
activity in file.
The activity is the child node of the application
node. The multiple activities can specify by multiple nodes of activity.
Each
node of activity will specify the name of the activity to recognize by the
system. One activity must be declare as the main activity.
<? xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.creativeandroidapps.creativeapp"
android:versionCode="1"
android:versionName="1.0" >
//add the minsdkVersion to support backward
compatibility
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="15" />
<application
android:icon="@drawable/ic_launcher" //change your app icon here
android:label="@string/app_name" > //change your app name here
<activity //main
activity
android:name=".creativeappActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity //add
another activity
android:name=".ChildActivity"
android:label="@string/app_name" >
</activity>
</application>
</manifest>