Yes, I use this method now but android has a limitation somewhere
inside
and in a few device I get

E/JavaBinder( 2254): !!! FAILED BINDER TRANSACTION !!!

errors because of these drawables. So I'm trying to find out how to
avoid
this bug. Maybe Uri can help.



> Oh, and there is also this:
>
> http://developer.android.com/reference/android/content/pm/PackageItem...)
>
> but then you'd need to push the icon into the widget as a drawable,
> which is not very efficient across process boundaries, but it just
> depends on how often you'll be updating your widget.



>
> -- Kostya
>
> 07.02.2011 14:32, b_t пишет:
>
>
>
>
>
>
>
>
>
> > No, I would like to display icons of other installed applications.
>
> > I thought that it isn't possible because a resource id is unique only
> > in a project
> > not in the whole system, am I right?
>
> > Just I don't understand what the ActivityInfo.icon or ResolveInfo.icon
> > is good for
> > if I can't use that value to display the app icon.
>
> > On Feb 7, 9:49 am, Kostya Vasilyev<kmans...@gmail.com>  wrote:
> >> If that's your own application, sure.
>
> >> If it's not, I don't see how the "remote" side of RemoteViews would know
> >> to load some resources from your application and the icon from another
> >> package.
>
> >> -- Kostya
>
> >> 07.02.2011 11:44, b_t пишет:
>
> >>> Hi,
> >>> ActivityInfo class contains an icon attribute which is a resource id.
> >>> Can my appwidget use this resource id to display this icon?
> >>> (ResourceViews.setImageViewResource)
> >>> Or I have to load the icon and call setImageViewBitmap?
> >>> The problem with this solution that it puts more data to the
> >>> transaction.
> >>> Thanks, Tamás
> >> --
> >> Kostya Vasilyev -- WiFi Manager + pretty widget 
> >> --http://kmansoft.wordpress.com
>
> --
> Kostya Vasilyev -- WiFi Manager + pretty widget 
> --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 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