Setting an Android Notification Icon to a remote URL

前端 未结 2 406
猫巷女王i
猫巷女王i 2020-12-20 14:37

I want to use a remote URL (like a favicon) for a notification icon, however the constructor for a notification accepts only a resource ID (which is an integer) instead of s

2条回答
  •  悲哀的现实
    2020-12-20 14:59

    Since API 11 Android has had the ability to use a Bitmap for a largeIcon in notifications. This has been expanded even further in Jelly Bean to allow entire notifications to be an image, BigPictureStyle.

提交回复
热议问题