o que retornar no onStartCommand para um serviço
Eu estive examinando a documentação e, às vezes, oonStartCommand()
retornaSTART_NOT_STICKY
, às vezes, retorna o seguinte:
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
// TODO Auto-generated method stub
return super.onStartCommand(intent, flags, startId);
}
Agora estou confuso sobre o motivo pelo qual alguns serviços retornamsuper.onStartCommand(intent, flags, startId);