remote-client

Can someone help me with Android RemoteControlClient?

ぐ巨炮叔叔 提交于 2019-12-20 21:57:09
问题 I'm trying to get the RemoteControlClient set up so my app's music can be controlled by the widget that pops up on the lock screen (like SoundCloud, Google Play Music, and other music/video apps work). I'm not sure what's wrong with my code and why it isn't correctly hooking, but here's what I have so far... A class called MusicService that tries to handle the updates to the RemoteControlClient public class MusicService extends Service { public static final String ACTION_PLAY = "com.stfi