Tu pode gerar o try catch no carregamento e pegar o erro, mas aparece no log que a chave é invalida mesmo.
Em sexta-feira, 22 de julho de 2016 14:41:46 UTC-3, gorio escreveu:
-- Em sexta-feira, 22 de julho de 2016 14:41:46 UTC-3, gorio escreveu:
Boa tarde,Estou com um dilema aqui sobre Mapas.Preciso detectar em meu App se a chave adicionada é válida.Pelo Android Monitor consigo observar que é exibido uma mensagem de erro, porém preciso detectar isso em minha aplicação. Como fazer isso ?07-22 14:24:26.396 3948-5109/com.gorio.teste E/b: Authentication failed on the server.07-22 14:24:26.396 3948-5109/com.gorio.teste E/Google Maps Android API: Authorization failure. Please see https://developers.google.com/ maps/documentation/android- for how to correctly set up the map.api/start 07-22 14:24:26.396 3948-5109/com.gorio.teste E/Google Maps Android API: In the Google Developer Console (https://console.developers. google.com )Ensure that the "Google Maps Android API v2" is enabled.Ensure that the following Android Key exists:API Key: LKJLkjKLjKLJkjsakdajlksjdalkjdalkjsdlkajdsjlia Android Application (<cert_fingerprint>;<package_name>): XX:XX:XX:XX:XX:XX:XX:XX:XX:XX: XX:XX:XX:XX:XX:XX:XX:XX:XX:XX; com.gorio.teste Atenciosamente
Gorio
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