This is an overview I wrote last year on the things you shouldn't change in
your app if you want updates to go smoothly:
http://android-developers.blogspot.com/2011/06/things-that-cannot-change.html

On Sun, Jun 3, 2012 at 4:09 AM, Kostya Vasilyev <kmans...@gmail.com> wrote:

>
> 03.06.2012 14:22, David Ross написал:
>
>  Sadly, this does not work at all well. Just as when you have a widget
>> and you uninstall the app you get the horrid "Problem Loading Widget"
>> message, the same thing happens when the user accepts the update from
>> the Play site.
>>
>
> Never seen this with my own widgets, or other installed widgets on any of
> my phones.
>
> Now, if the updated package uses a different class name for "the same"
> widgets, the home screen won't know this, and the user will get the message
> you describe.
>
> So, pick those class names carefully, and don't change them :)
>
> Besides, package updates happen all the time during development
> (run/debug), and they doesn't cause existing widgets to go sour.
>
> In fact, the launcher will update all of them just after the installation
> is complete to ensure consistency with new code and assets.
>
>
>  Also watch out for irritating things like ghost widgets on lower API
>> levels (1.6) when unexpected things happen like there's not enough
>> home screen space for your widget. I keep my own track of the widgets
>> so I can detect and ignore ghost widgets.
>>
>
> I've seen ghost widget ids on my Galaxy Nexus with 4.0.4, so don't throw
> that code away just yet :)
>
>
> --
> Kostya Vasilyev
>
>
> --
> 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<android-developers@googlegroups.com>
> To unsubscribe from this group, send email to
> android-developers+**unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/**group/android-developers?hl=en<http://groups.google.com/group/android-developers?hl=en>
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to