Well crap.

I changed the entry activity (MAIN, LAUNCHER) to my app in the 
manifest (swapped it with another activity, actually).

Install. Android tries to launch the old entry activity.

Uninstall, reinstall -- no change.

Factory reset the phone -- install -- NEW ENTRY ACTIVITY RECOGNIZED!

Swap back to the old entry activity (just to see), and *it* now fails.

So....I HOPE NO ONE EVER CHANGES THE ENTRY ACTIVITY OF THEIR PROGRAM 
WHEN THEY ISSUE AN UPDATE OR THEIR USERS ARE GOING TO HAVE TO ERASE 
THEIR PHONES.

Guess I'll put in a do-nothing "entry stub activity" that does 
nothing but launches the real entry point and then finish(), so at 
least I am protected should I want to make a change in the future.

Please someone tell me I have made a stupid error here.

-- Ward

This is 1.1 on a G1. Manifest:

       <activity android:name="ActivityEntry"
 
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
                   android:screenOrientation="portrait"  >
             <intent-filter>
                 <action android:name="android.intent.action.MAIN" />
                 <category android:name="android.intent.category.LAUNCHER" />
             </intent-filter>
         </activity>





>After a long time with one Activity being my app's entry point, I
>just changed the manifest to point to a different activtiy to be the
>entry point. But the G1 is doggedly trying to load the old activity
>-- even after uninstall, install, reboot, etc. and acore throws a
>security exception.
>
>04-06 11:18:20.117 E/AndroidRuntime(  469): Uncaught handler: thread
>main exiting due to uncaught exception
>04-06 11:18:20.127 E/AndroidRuntime(  469):
>java.lang.SecurityException: Permission Denial: starting Intent {
>action=android.intent.action.MAIN
>categories={android.intent.category.LAUNCHER} flags=0x10200000
>comp={com.foo.myapp/com.foo.ActivityThatUsedToBeTheEntryPoint} } from
>ProcessRecord{431ff238 469:android.process.acore/10008} (pid=469,
>uid=10008) requires null
>
><users-permissions> have not changed.
>
>Thoughts?
>
>-- Ward
>
>

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