@Override public void onResume() { super.onResume(); if (paused) { setController(); paused = false; } }
@Override public void onStart() { super.onStart(); if (playIntent == null) { playIntent = new Intent(getActivity(), MusicService.class); getActivity().bindService(playIntent, musicConnection, Context.BIND_AUTO_CREATE); } }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); oAuthParametersReg = new OAuthParameters(); oAuthParametersReg.addParameter("client_id", getOAuthConnection().getClientID()); oAuthParametersSearch = oAuthParametersReg; // String song = "12505369"; }
@Override public void onStop() { mController.hide(); super.onStop(); }
@Override public void onPause() { super.onPause(); paused = true; }
@Override public void onDestroy() { musicSrv.stopService(playIntent); musicSrv = null; super.onDestroy(); }