Wednesday, September 29, 2010

Re: [android-developers] Re: Tab Layout not working

On Wed, Sep 29, 2010 at 9:19 PM, Saied <> wrote:
> I had looked at it, but can't quite make what' wrong:
> It seems that the package name is prepended twice: com.exideas.mekb/
> com.exideas.mekb.TabHolder

The first part is your package name. The second part is the activity class name.

> Other than that, TabHolder is included in the manifest:
>   <activity    android:name="TabHolder"
>                                android:theme="@android:style/Theme.NoTitleBar"
>                        android:label="MessagEase Settings">
>            <intent-filter>
>                <action android:name="android.intent.action.MAIN" />
>                <category
> android:name="android.intent.category.LAUNCHER" />
>            </intent-filter>
>        </activity>


> Here's the barf part:
> 09-29 18:00:00.361: DEBUG/AndroidRuntime(1238): Shutting down VM
> 09-29 18:00:00.361: WARN/dalvikvm(1238): threadid=1: thread exiting
> with uncaught exception (group=0x4001d800)
> 09-29 18:00:00.400: ERROR/AndroidRuntime(1238): FATAL EXCEPTION: main
> 09-29 18:00:00.400: ERROR/AndroidRuntime(1238):
> java.lang.RuntimeException: Unable to start activity
> ComponentInfo{com.exideas.mekb/com.exideas.mekb.TabHolder}:
> android.content.ActivityNotFoundException: Unable to find explicit
> activity class {com.exideas.mekb/com.exideas.mekb.ArtistsActivity};
> have you declared this activity in your AndroidManifest.xml?

You do not have your ArtistsActivity class in your manifest.

I also really encourage you to reconsider the activities-in-tabs
approach. Unless you have a really good reason for it -- and I have
yet to find one -- use views-in-tabs. You have much less code, reduced
risk of running out of stack space, etc. Here is a sample project:

Mark Murphy (a Commons Guy) | |

Android 2.2 Programming Books:

You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment