Cara o motivo disso é por que o fragment não esta sendo recriado assim, ele seta em um objeto nulo.
Tenta usar um FrameLayout, veja no stackoverflow: http://stackoverflow.com/questions/19166504/having-an-issue-with-googlemap-v2-crashing-app-on-orientation-change
Em segunda-feira, 25 de julho de 2016 14:16:44 UTC-3, shido...@gmail.com escreveu:
-- Tenta usar um FrameLayout, veja no stackoverflow: http://stackoverflow.com/questions/19166504/having-an-issue-with-googlemap-v2-crashing-app-on-orientation-change
Em segunda-feira, 25 de julho de 2016 14:16:44 UTC-3, shido...@gmail.com escreveu:
Pessoal, saudações....Implementei um fragment e coloquei o google maps...Até então, funcionou bakana... massssssssssssssssssssssssToda vez que eu viro o celular, a app trava...Alguém já passou por isto?????Segue abaixo o erro gerado.07-25 12:50:17.665 29201-29201/com.example.mauricio.aalistview E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.mauricio. aalistview, PID: 29201
Theme: themes:{default=overlay: system, iconPack:system, fontPkg:system, com.android.systemui=overlay: system, com.android.systemui.navbar= overlay:system}
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example. mauricio.aalistview/com. example.mauricio.aalistview. MainActivity}: android.view.InflateException: Binary XML file line #63: Binary XML file line #63: Error inflating class fragment Caused by: android.view.InflateException: Binary XML file line #63: Binary XML file line #63: Error inflating class fragment Caused by: android.view.InflateException: Binary XML file line #63: Error inflating class fragment Caused by: java.lang.IllegalStateExceptio n: Fragment com.google.android.gms.maps. SupportMapFragment did not create a view. PS: Me desculpe a postagem repetida.. as a primeira, eu notei que não está abrindo pelo site....
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.
0 comentários:
Postar um comentário