how to install google play services programmatically in android for displaying google maps ? -


i have device in google play services not installed. application uses google maps display current location..so in order display maps getting message install google play services.

i have code check whether google play services installed or not. final int rqs_googleplayservices = 1;

// check status of google play services int status = googleplayservicesutil.isgoogleplayservicesavailable(this);  // check google play service available try {     if (status != connectionresult.success) {         googleplayservicesutil.geterrordialog(status, this, rqs_googleplayservices).show();     } } catch (exception e) {     log.e("error: googleplayserviceutil: ", "" + e); } 

but displays dialog install google play services..on click of button says no scan data received. can 1 me install play services programmatically...or should manually install them ...?

if device legitimately has play store on it, dialogs should user on play store download appropriate apk. if not working, make sure on latest play services sdk.

if device not have play store on it, or has pirated copy (whether pirated or device manufacturer), there no legitimate way user play services framework, , explain why dialogs not working. if planning on distributing through channels other play store, need use alternative source of maps channels (e.g., openstreetmap).


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -