Tecnologia do Blogger.
RSS

[androidbrasil-dev] onCreate sendo chamado após uma ação na tela

Felipe,


Como descrito na resposta do link acima:
"I can probably safely conclude that the reason for why onDestroy gets called is because the receiver affects the process in which it is run, effectively meaning when the receiver has run its onReceive method, it will destroy itself and take the Activity with it."

Enfim, é necessário fazer algum tratamento pra evitar problemas. talvez salvar os dados no onDestroy e no onCreate verificar se tem dados salvos pra e carregar eles. Assim deve ficar quase transparente pro usuário.

Atenciosamente
Maicon Strey

Em quarta-feira, 30 de agosto de 2017, Felipe Aron <felipearon@gmail.com> escreveu:
Pessoal, to batendo a cabeça aqui numa coisa:

Eu to usando o leitor bluetooth para ler código de barras. Até aqui tudo tranquilo.

Porém quando eu perco a conexão com o leitor, por algum motivo, é feita a chamada do método onCreate da minha tela.

Alguém já passou por isso? Alguma ideia de como resolver?

--
Programador & Empreendedor Digital

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

Maicon Strey
Novo Hamburgo - RS - Brasil
------------------
------------------

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 comentários:

Postar um comentário