I can't remember it exactly off-hand, but if you can get a ResolveInfo
for wherever you want to load the icon from, there's a loadIcon method
there;  I THINK it's ResolveInfo.loadIcon(PackageManager
packageManager, Context context), where context = your current
context.  Search the source for Launcher/Launcher2 on github, I know
that's where I found it originally.  If that doesn't work for you,
there's also a method to getResourceIdForName or something to that
effect in either PackageManager or ResolveInfo.

On Apr 28, 8:25 am, Menny <menn...@gmail.com> wrote:
> Hi,
> I want to show a notification icon in my application, but to take the
> icon from a different package.
>
> My application loads resources from external packages, and ,may show
> some information in the notification bar.
> I can take the title and text from the external package, but the icon
> can be specified only as resource ID, and Android extract the resource
> from the running context.
>
> Anyone can help?
>
> --
> 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 
> athttp://groups.google.com/group/android-developers?hl=en

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