Android manifest.xml

esausilva picture esausilva · Feb 2, 2011 · Viewed 9.3k times · Source

I'm working on the Tabs example from Google Android Developers site (http://developer.android.com/resources/tutorials/views/hello-tabwidget.html) but I'm stuck in step 2.

At the very end of step 2 says "Duplicate this for each of the three activities, and add the corresponding tags to the Android Manifest file"

What exactly do I have to add to the AndroidManifest.xml?

Thanks

Answer

Pa1 picture Pa1 · Feb 2, 2011

This is how your Manifest file should be:

    <activity android:name=".ArtistsActivity"
              android:label="@string/app_name" 
              android:theme="@android:style/Theme.NoTitleBar">
    </activity>

    <activity android:name=".SongsActivity"
              android:label="@string/app_name" 
              android:theme="@android:style/Theme.NoTitleBar">
    </activity>

    <activity android:name=".AlbumsActivity"
              android:label="@string/app_name" 
              android:theme="@android:style/Theme.NoTitleBar">
    </activity>

</application>

This will work for sure!!