Code example for RemoteControlClient

Methods: setPlaybackState

0
   * Updates the state of the remote control to "stopped". 
   */ 
  public void stop() { 
    if (remoteControlClient != null) {
      remoteControlClient
          .setPlaybackState(RemoteControlClient.PLAYSTATE_STOPPED);
    } 
  } 
 
  /** 
   * Set the metadata of this episode according to the episode. 
   */ 
  public void updateMetadata(DBEpisode episode, long duration) {
    if (remoteControlClient != null) {
      MetadataEditor editor = remoteControlClient.editMetadata(true);
      DBFeed feed = episode.getFeed();
 
      ImageCache imageCache = App.get().getImageCache();
      String imgUrl = episode.getImgUrl();
      BitmapDrawable episodeIcon = imageCache.getResource(imgUrl);
Connect your IDE to all the code out there  Get Codota for Java