Your main activity appears to be private (not exported).  Do you have an
android:exported="false" line on it?

On Sun, Jan 11, 2009 at 10:06 PM, Droid Rage <[email protected]> wrote:

>
> When I try to run a very simple application, the console shows me:
> "ActivityManager: [1]   Killed"
>
> and attempting to run the app in the emulator causes the acore to
> crash.
>
>
>
> The weirdest part is that all I've done is to change the class and
> package names of the Notepad_v3_Solution demo that comes with the SDK
> documentation.
>
> I deleted all of the class files and the R.java file ... Eclipse
> rebuilt them, but the app still does not launch.  The Notepadv3 app
> launches fine in the emulator.
>
>
>
>
> This is what logcat shows:
>
> W/KeyCharacterMap(  259): Using default keymap: /system/usr/keychars/
> qwerty.kcm.bin
> I/ActivityManager(   50): Starting activity: Intent
> { action=android.intent.action.MAIN categories=
> {android.intent.category.LAUNCHER} flags=0x10200000 comp=
> {com.mypackage.testsuite.MyApp/com.mypackage.testsuite.MyApp.MyApp} }
> W/ActivityManager(   50): Permission Denial: starting Intent
> { action=android.intent.action.MAIN categories=
> {android.intent.category.LAUNCHER} flags=0x10200000 comp=
> {com.mypackage.testsuite.MyApp/com.mypackage.testsuite.MyApp.MyApp} }
> from ProcessRecord{434fcc98 259:android.process.acore/10003} (pid=259,
> uid=10003) requires null
> D/AndroidRuntime(  259): Shutting down VM
> W/dalvikvm(  259): threadid=3: thread exiting with uncaught exception
> (group=0x40010e28)
> E/AndroidRuntime(  259): Uncaught handler: thread main exiting due to
> uncaught exception
> E/AndroidRuntime(  259): java.lang.SecurityException: Permission
> Denial: starting Intent { action=android.intent.action.MAIN categories=
> {android.intent.category.LAUNCHER} flags=0x10200000 comp=
> {com.mypackage.testsuite.MyApp/com.mypackage.testsuite.MyApp.MyApp} }
> from ProcessRecord{434fcc98 259:android.process.acore/10003} (pid=259,
> uid=10003) requires null
> E/AndroidRuntime(  259):        at android.os.Parcel.readException
> (Parcel.java:1234)
> E/AndroidRuntime(  259):        at android.os.Parcel.readException
> (Parcel.java:1222)
> E/AndroidRuntime(  259):        at
> android.app.ActivityManagerProxy.startActivity
> (ActivityManagerNative.java:998)
> E/AndroidRuntime(  259):        at
> android.app.Instrumentation.execStartActivity(Instrumentation.java:
> 1437)
> E/AndroidRuntime(  259):        at
> android.app.Activity.startActivityForResult(Activity.java:2528)
> E/AndroidRuntime(  259):        at
> com.android.launcher.Launcher.startActivityForResult(Launcher.java:
> 817)
> E/AndroidRuntime(  259):        at android.app.Activity.startActivity
> (Activity.java:2572)
> E/AndroidRuntime(  259):        at
> com.android.launcher.Launcher.startActivitySafely(Launcher.java:1180)
> E/AndroidRuntime(  259):        at
> com.android.launcher.AllAppsGridView.onItemClick(AllAppsGridView.java:
> 51)
> E/AndroidRuntime(  259):        at
> android.widget.AdapterView.performItemClick(AdapterView.java:283)
> E/AndroidRuntime(  259):        at android.widget.AbsListView
> $PerformClick.run(AbsListView.java:1415)
> E/AndroidRuntime(  259):        at android.os.Handler.handleCallback
> (Handler.java:542)
> E/AndroidRuntime(  259):        at android.os.Handler.dispatchMessage
> (Handler.java:86)
> E/AndroidRuntime(  259):        at android.os.Looper.loop(Looper.java:123)
> E/AndroidRuntime(  259):        at android.app.ActivityThread.main
> (ActivityThread.java:3742)
> E/AndroidRuntime(  259):        at java.lang.reflect.Method.invokeNative
> (Native Method)
> E/AndroidRuntime(  259):        at java.lang.reflect.Method.invoke
> (Method.java:515)
> E/AndroidRuntime(  259):        at com.android.internal.os.ZygoteInit
> $MethodAndArgsCaller.run(ZygoteInit.java:739)
> E/AndroidRuntime(  259):        at com.android.internal.os.ZygoteInit.main
> (ZygoteInit.java:497)
> E/AndroidRuntime(  259):        at dalvik.system.NativeStart.main(Native
> Method)
> I/Process (   50): Sending signal. PID: 259 SIG: 3
> I/dalvikvm(  259): threadid=7: reacting to signal 3
> I/dalvikvm(  259): Wrote stack trace to '/data/anr/traces.txt'
> V/DumpStateReceiver(   50): Running: /system/bin/dumpcrash
> I/DumpStateReceiver(   50): Finished: 1769 bytes read; status 0
> I/DumpStateReceiver(   50): Added state dump to 1 crashes
> I/Process (  259): Sending signal. PID: 259 SIG: 9
> I/ActivityManager(   50): Process android.process.acore (pid 259) has
> died.
> I/WindowManager(   50): WIN DEATH: Window{43512558
> com.android.launcher/com.android.launcher.Launcher}
> I/ActivityManager(   50): Start proc android.process.acore for
> activity com.android.launcher/.Launcher: pid=346 uid=10003 gids={3003}
> I/jdwp    (  346): received file descriptor 10 from ADB
> I/ActivityThread(  346): Publishing provider
> com.android.googlesearch.SuggestionProvider:
> com.android.googlesearch.SuggestionProvider
> I/ActivityThread(  346): Publishing provider contacts;call_log:
> com.android.providers.contacts.ContactsProvider
> W/GoogleLoginService(  119): Device has no accounts: sending Intent
> { action=android.accounts.LOGIN_ACCOUNTS_MISSING }
> I/GoogleLoginService.PasswordEncrypter(  119): no public key
> available, using default
> D/dalvikvm(  346): GC freed 1816 objects / 120144 bytes in 146ms
> D/dalvikvm(  346): GC freed 414 objects / 30152 bytes in 126ms
> I/ActivityManager(   50): Stopping service:
> com.google.android.googleapps/.GoogleLoginService
> I/ActivityManager(   50): Displayed activity
> com.android.launcher/.Launcher: 3031 ms
> D/dalvikvm(  119): GC freed 187 objects / 10416 bytes in 102ms
> D/dalvikvm(  346): GC freed 1908 objects / 111576 bytes in 145ms
> D/dalvikvm(  346): GC freed 687 objects / 29968 bytes in 110ms
> I/ActivityManager(   50): Starting activity: Intent
> { action=android.intent.action.MAIN categories=
> {android.intent.category.LAUNCHER} flags=0x10200000 comp=
> {com.android.demo.notepad3/com.android.demo.notepad3.Notepadv3} }
> I/ActivityManager(   50): Start proc com.android.demo.notepad3 for
> activity com.android.demo.notepad3/.Notepadv3: pid=359 uid=10021 gids=
> {}
> I/jdwp    (  359): received file descriptor 10 from ADB
> I/ActivityManager(   50): Displayed activity
> com.android.demo.notepad3/.Notepadv3: 1542 ms
> D/dalvikvm(  346): GC freed 137 objects / 7304 bytes in 123ms
>
>
>
>
> Any help would be greatly appreciated.
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to