rico_1 wrote: > On 4 Maj, 12:32, Mark Murphy <[email protected]> wrote: >> rico_1 wrote: >>> When I add tabs, the app is stopped... >> And the error is...what? You can get the error message and Java stack >> trace from adb logcat or DDMS. >> > > Sorry, my fault... :) > error was: > Unable to find explicit activity class {com.android.tabs/ > com.android.tabs.List1}; have you declared this activity in your > AndroidManifest.xml? > > I added to AndroidManifest.xml and works.: > <activity android:name=".List1" > android:label="@string/app_name"> > > <intent-filter> > <action android:name="android.intent.action.MAIN" /> > <category > android:name="android.intent.category.LAUNCHER" /> > </intent-filter> > </activity>
Is the class public? Is the manifest's package defined as com.android.tabs? (and bear in mind that you really should not create code that runs in the com.android namespace) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

