Re: [android-developers] Re: Widget Product Updates
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
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home