@Override
 public void onDestroy() {
   super.onDestroy();
   if (musicService != null) {
     getAActivity().unbindService(musicServiceConnection);
   }
 }
 @Override
 public void onAttach(Context context) {
   super.onAttach(context);
   if (context instanceof OnFragmentInteractionListener) {
     mListener = (OnFragmentInteractionListener) context;
   } else {
   }
 }
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setHasOptionsMenu(true);

    MusicService.bindToMe(getContext(), musicServiceConnection);

    if (getArguments() != null) {
      mParam1 = getArguments().getString(ARG_PARAM1);
      mParam2 = getArguments().getString(ARG_PARAM2);
    }
  }
 @Override
 public void onDetach() {
   super.onDetach();
   mListener = null;
 }
 @Override
 public void onPause() {
   super.onPause();
   OttoBus.unRegister(this);
 }
 @Override
 public void onResume() {
   super.onResume();
   OttoBus.register(this);
 }