> 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>
OK.
> 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:
http://github.com/commonsguy/cw-android/tree/master/Fancy/Tab/
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy
Android 2.2 Programming Books: http://commonsware.com/books
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment