Use onStartCommand instead of onStart

Forgot to update this when I made 2.0 required.
This commit is contained in:
Christopher Eby 2011-10-19 00:28:25 -05:00
parent d78eb70bd7
commit ffe97ab254

View File

@ -280,7 +280,7 @@ public final class PlaybackService extends Service implements Handler.Callback,
}
@Override
public void onStart(Intent intent, int flags)
public int onStartCommand(Intent intent, int flags, int startId)
{
if (intent != null) {
String action = intent.getAction();
@ -321,6 +321,8 @@ public final class PlaybackService extends Service implements Handler.Callback,
MediaButtonReceiver.registerMediaButton(this);
}
return START_NOT_STICKY;
}
@Override