<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.androidgames"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="3" />
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".AndroidBasicsStarter" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
//New Activity
<activty android:label="Life Cycle Test"
android:name=".LifeCycleTest"
android.configChanges="keyboard|keyboardHidden|orientation" />
</application>
</manifest>
<?xml version=1.0 encoding=utf-8?> <manifest xmlns:android=http://schemas.android.com/apk/res/android package=com.androidgames android:versionCode=1 android:versionName=1.0> <uses-sdk android:minSdkVersion=3 /> <application android:icon=@drawable/icon android:label=@string/app_name>
Share
That looks good, but consider moving the label to the strings resource file 🙂
In this case your activity should match a LifeCycleTest class in the root of your package (com.androidgames).