Methods Summary |
---|
protected java.util.ArrayList | getAllowedPackages()
return null;
|
public android.os.IBinder | onBind(android.content.Intent intent)
if (mBinder == null) {
mBinder = new PlayerBinder();
}
return mBinder;
|
public void | onCreate()
Log.d(TAG, "onCreate");
mIntent = onCreateServiceIntent();
if (mSession == null) {
mSession = onCreatePlayerController();
mSession.createSession();
mSession.setListener(mPlayerListener);
mNotifyHelper = new NotificationHelper(this, mSession.mSession);
}
|
protected PlayerSession | onCreatePlayerController()
return new PlayerSession(this);
|
protected android.content.Intent | onCreateServiceIntent()
return new Intent(this, PlayerService.class).setPackage(getBasePackageName());
|
public void | onDestroy()
Log.d(TAG, "onDestroy");
mSession.onDestroy();
mSession = null;
|
public void | onPlaybackEnded()
if (mStarted) {
Log.d(TAG, "Stopping self");
mNotifyHelper.onStop();
stopSelf();
mStarted = false;
}
|
public void | onPlaybackStarted()
if (!mStarted) {
Log.d(TAG, "Starting self");
startService(onCreateServiceIntent());
mNotifyHelper.onStart();
mStarted = true;
}
|
public int | onStartCommand(android.content.Intent intent, int flags, int startId)
Log.d(TAG, "onStartCommand");
return START_STICKY;
|