Get application Icon from pkg name

If like to be able to pass in a package name (e.g. com.whatsapp), and have a function that gets the app details. I’ve seen other people looking for this, but no solution and no Idea request either.

It looks like there used to be one? $tc(appicon, “com.whatsapp”)$

Initially I want the icon, that can populate a Global bitmap value.

I’d also like app name, but I’ve not looked to see if that’s already possible.

2 Likes

Hi @CharlesBeach,

Being able to grab the URI of the app icon would be great.

Currently, there are only these functions available, from the System Notification collection:

  • $ni(N, icon)$ ➞ get the icon of the Nᵗʰ cancelable notification
  • $ni(N, bicon)$ ➞ get the large (big) icon of the Nᵗʰ cancelable notification
  • $ni(N, app)$ ➞ the application name of the Nᵗʰ cancelable notification

NOTES

N is a number: 0, 1, 2, …

Example:

  • $ni(0, icon)$ ➞ get the icon of the 1ˢᵗ cancelable notification
  • $ni(1, icon)$ ➞ get the icon of the 2ⁿᵈ cancelable notification
  • $ni(2, icon)$ ➞ get the icon of the 3ʳᵈ cancelable notification

I hope this would help.

:smiling_face::+1:

I’m looking for the icon of ANY installed package name I pass on to it, not just ones with notifications.