Rafael,
Eu estou tendo problema com um MediaPlayer, numa tela para podcasts. Vi (http://www.androiddesignpatterns.com/2013/04/retaining-objects-across-config-changes.html) umas implementações de exemplo para esse setRetainInstance que criava uma interface e fazia o Activity que embarcava o Fragment implementar. É por esse caminho mesmo?
[]'s
Victor Pinto A. de Oliveira
Em 7 de agosto de 2013 09:52, Rafael Nobre Rocha <rafael.rocha@novaprolink.com.br> escreveu:
Se sua única fonte de dados que necessita persistir entre restarts é o cursor, use o Loader. Se além disso vc precisar manter um resource, como imagem, ou uma conexão aberta, etc, use-o em conjunto com o onRetain (ou se for fragment, setRetainInstance)
Em terça-feira, 6 de agosto de 2013 18h41min30s UTC-3, Victor Pinto escreveu:Senhores,--Alguém sabe me dizer quando é melhor usar Loader e quando é melhor usar onRetain para resolver o problema de persistir dados quando trocar a orientação do aparelho?
You received this message because you are subscribed to a topic in the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/androidbrasil-dev/-Cb1pM9g-b0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
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/groups/opt_out.






0 comentários:
Postar um comentário