Android Tab Layout Tutorial working example
So, I’m working through Android tutorials and as it turns out the big G has not done an excellent job with some of the tutes. Little things are missing that break the application. In this case I wanted to post the contents of my AndroidManifest.xml for the Tab Layout tutorial. With this file I got my sample app working on the emulator. Most of the tutorial is pretty good, so just follow that. If you have questions, let me know.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.hellotabview"
android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".HelloTabWidget"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".AlbumsActivity"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar">
</activity>
<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>
</application>
<uses-sdk android:minSdkVersion="7" />
</manifest>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.hellotabview"
android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".HelloTabWidget"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".AlbumsActivity"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar">
</activity>
<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>
</application>
<uses-sdk android:minSdkVersion="7" />
</manifest>
19 Comments to “Android Tab Layout Tutorial working example”
RSS feed for comments on this post. TrackBack URI
By anand, September 24, 2010 @ 11:17 pm
still i am facing the problem (i.e) The process….. has stopped unexcep…
By Lombas, October 21, 2010 @ 8:15 am
Thanks men. This really helped me.
I thought the same thing about google. All the previous tutorials were fine, but this one really sucks. I even searched the page to see if google had a link to contact them…. no luck.
Thanks again!
By Fuzzy, October 21, 2010 @ 1:55 pm
Thank you for this. I’ve been having problems with a couple of their tutorials. It briefly mentions adding the Activity to the Manifest but doesn’t say what to add. Thanks again.
Fuzzy
By Mathew Hallam-Eames, October 27, 2010 @ 5:21 pm
This works a treat….
Thank you
MMHE
By Dsempatao, November 4, 2010 @ 3:36 am
Thanks a lot! I was stuck getting a forced application close, because the AndroidManifest I adapted from somewhere else was not appropriate. The original tutorial should definitely addresss this.
By Justin, November 10, 2010 @ 4:54 pm
Thanks. That was annoying me. I really appreciate the update.
By Haven, December 10, 2010 @ 7:06 pm
Thanks a ton for this.
By Zsigmund Gabor, December 19, 2010 @ 3:16 pm
Thank you!!! This post is very helpful, I had some problems with the tutorial before finding your post. Great!
By Niklas, December 23, 2010 @ 5:24 pm
Thanks!
Tore off most of my hair for a full afternoon, before finding this.
Thanks again!
By sri, January 28, 2011 @ 4:56 pm
thanks a lot!!!! sometime big G is lazy, no working code given.
By navid, February 2, 2011 @ 7:32 am
many thanks!!!!!!!this post is very helpful,i spent a lot of time before find your post.
thanks again.
By rainman, February 13, 2011 @ 10:35 am
Thank you!!
By gil, February 19, 2011 @ 3:24 am
maybe im stupid and only i dont get this
this page is for: “Android Tab Layout Tutorial working example”
all i see is this manifest example that you placed here
what else is there in this page to explain about tab layout
By Raivo, February 21, 2011 @ 9:45 pm
@gil – the complete tutorial is on the android official site. the manifest there didn’t work for me, so I pasted here a version of the manifest that did. that’s it.
By Kryten, March 21, 2011 @ 12:59 am
Should have figured that one out by myself. Its quite obvious that you need to have all activities in the manifest file….
By Leitrim Man, April 9, 2011 @ 8:49 am
Thanks a bunch, Really took me out of a jam.
By Fredrik, August 21, 2011 @ 3:33 am
Thanks, this saved me a lot of debugging.
By Neil, November 1, 2011 @ 9:26 am
I am still having the same problem. Does anyone actually have a working downloadable sample, or at least any guidelines other than the rubbish google docs?
By Tim, January 6, 2012 @ 12:47 pm
Big G should care about small mistakes. It gives hard time to other, because people trust them.