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 something more useful like a FileInputStream
.
How can I either
define a new resource for a stream source
download an icon, add to my resources, and then dynamically get an ID?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…