Android show a notification not working

后端 未结 1 1999
梦谈多话
梦谈多话 2020-12-06 20:27

Currently I have a service that plays music. I want to show a notification when the service start to play music. This is what I do:

public void setUpNotifica         


        
相关标签:
1条回答
  • 2020-12-06 20:59

    Per the notification guide list of required fields, you must set a small icon via the setSmallIcon() method. Generally, this icon looks like your application icon, although entirely as white over a transparent background per the anatomy of a notification.

    0 讨论(0)
提交回复
热议问题