private void sendAction ( Context context , String action ) { Intent intent = new Intent ( context , PlaybackService . class ) ; intent . setAction ( action ) ; LocalBroadcastManager . getInstance ( context ) . sendBroadcast ( intent ) ; }
Propagate lock screen event to the player .