I have a service that runs an async task. Does the service call stopSelf() after the async task has finished?
Example Code:
public class BackgroundService extends Service {
private final IBinder mBinder = new Binder();
@Override
public void onCreate() {
}
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
new AsyncMethod().execute();
return START_STICKY;
}
@Override
public IBinder onBind(Intent intent) {
return mBinder;
}
}