Load app hi-res icon

Short snippet how to load hi-res icon of the app by its package name.

By default when you request some app icon from PackageManager you get icon for device density, which is pretty obvious.

But if you want to display this icon larger then it is (46dp) you need to load higher resolution version of icon to prevent pixilisation.

If your min sdk is >= 15 you can use this code:


One Reply to “Load app hi-res icon”

Leave a Reply

Your email address will not be published. Required fields are marked *