January 4th, 2011, 12:39 AM
|
#3 (permalink)
|
|
Senior Member
Join Date: Jul 2010
Posts: 977
Device(s): Samsung Galaxy S II, HTC Evo 4G, Amazon Kindle Fire
Thanks: 52
Thanked 199 Times in 144 Posts
|
Code:
<activity android:name=".ActivityName" android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Note that the android:name attribute of the <Activity> node MUST begin with a '.' and is just the name of the java file. For example, if your java file was named Website.java, then the android:name attribute would be:
android:name=".Website"
|
|
|