I vaguely remember this from about 12-18 months ago and was surprised
to see it still hasn't been fixed.

The problem - app update changes the fully qualified class name of the
main/launcher activity. Shortcuts (e.g. on home screen or in main app
drawer) still point to old class name and so when user clicks on it
they get some kind of message saying app could not be found.

User workaround - reboot phone

Dev workaround - include this in your manifest:

<activity android:name="com.mycompany.myapp.MyOldActivity">
        <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
</activity>

and then add that activity to your code, simply subclassing the new
activity (the one which replaced MyOldActivity).

Hope this helps (and sorry if its been posted by someone else before -
couldn't find it). I got a bunch of users contacting me about this
(mainly HTC Desire users) so its worth getting right.

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