Initialize the task with the provider to download the music data and the listener to be informed when the task is done.parammusicProviderparamlistener mMusicProvider = musicProvider; mMusicProviderTaskListener = listener;
mMusicProvider = musicProvider; mMusicProviderTaskListener = listener;
try { mMusicProvider.retreiveMedia(); } catch (JSONException e) { Log.e(TAG, "::doInBackground:", e); } return null;
mMusicProviderTaskListener.onMusicProviderTaskCompleted();