17.02.2011 20:59, b_t пишет:
I would like to use them in RemoteViews.setImageViewResource or
setImageViewUri calls.
A resource id - won't work, the widget's image view is in another
application (stock or replacement launcher).
A Uri - would work, with a "file://" or "content://" scheme. A file
should not be private to your application, so that the home screen app
(widget host) can read it.
Starting with Froyo, ImageView can also use "android.resource://" Uris
to refer to resources in other packages (not sure what security-related
requirements there might be, if any).
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
--
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