Android: Programmatically validate google map key in Application -


i have application end-user can input own google map key , show map. have proper way check if key isn't empty, problem check if map key valid before showing map.

i assume user can input wrong key, valid google key app.

is there way detect that?

i know people check proper log in logcat don't think it's best way.

any appreciated.

thanks

if got right, want validate if user's key working. (i dont think can validate other things)

i create little progressdialog or ui element indicates "validating api key" , make user wait until has been done. validate api ke performing simple request api key.

if there no "simple" api key can determine if key valid can create map hidden , initialize user's key described in answer: mapactivity: set apikey programmatically validation method can work map , call functions. when exception thrown know key not valid.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -