Code example for Fragment

Methods: getActivityonResumetoString

0
    } 
  } 
 
  @Override 
  public void onResume() { 
    super.onResume(); 
    getActivity().setTitle(toString());
  } 
 
  /** 
   * Creates the controller (play, pause, rewind etc controls) for the player. 
   */ 
  private void createMediaController() { 
    checkState(mediaPlayer != null,
        "media player must be initialized before the media controller"); 
 
    mediaController = new MediaController(getActivity());
 
    mediaController.setAnchorView(getAudioView());
 
Contextual code suggestions in your IDE  Get Codota for Java