qué devolver en onStartCommand para un servicio
He estado revisando la documentación y algunas vecesonStartCommand()
devolucionesSTART_NOT_STICKY
, a veces devuelve lo siguiente:
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
// TODO Auto-generated method stub
return super.onStartCommand(intent, flags, startId);
}
Ahora estoy confundido sobre por qué algunos servicios regresansuper.onStartCommand(intent, flags, startId);