问题描述:

I have service which plays the radio & creates a notification. The notification must incude title, text, time & a button(pause/play). I have added rest of the things & notification is getting displayed. But I'm not sure about how to add the button to the notification. On searching, I found I can use RemoteView, RemoteControlClient & MediaStyles. But RemoteControlClient & MediaStyles are used when there is a media file playing with all buttons(previous,pause,play,back). So I'm really confused about it. Can anyone suggest me, which one to use to add buttons in the notification for Lollypop.

相关阅读:
Top