Skip to content

Instantly share code, notes, and snippets.

public class MediaPlayerService extends Service implements MediaPlayer.OnCompletionListener,
MediaPlayer.OnPreparedListener, MediaPlayer.OnErrorListener, MediaPlayer.OnSeekCompleteListener,
MediaPlayer.OnInfoListener, MediaPlayer.OnBufferingUpdateListener,
AudioManager.OnAudioFocusChangeListener {
public static final String ACTION_PLAY = "com.be.homsi.ACTION_PLAY";
public static final String ACTION_PAUSE = "com.be.homsi.ACTION_PAUSE";
public static final String ACTION_PREVIOUS = "com.be.homsi.ACTION_PREVIOUS";
public static final String ACTION_NEXT = "com.be.homsi.ACTION_NEXT";
package com.be.homsi.adapter;
import android.Manifest;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.ServiceConnection;
import android.content.SharedPreferences;
public class Inter extends Fragment implements MainView {
List<InterpretationModel> passages;
List<InterpretationModel> interlists;
Menu test; AudioAdapter adapters;
public RecyclerView mRecyclerView,recycleraudio;
public Recycleradapter mAdapter;
boolean serviceBound = false;
TextView textView;