Android - Google Map v2 - need update google play service on device -


i use sdk 21 , develop on google map v2 when want install apk on device , device need latest version of google play service.

my questions are:

1 - have android devices google play service defaultly
2 - true ask customer install service ?
3 - if 2 question yes , how can embed service on project notify customer service installation , project install service itself

1 - have android devices google play service default

no, not devices have google play services installed default.

2 - true ask customer install service ?
3 - if 2 question yes , how can embed service on project notify customer service installation , project install service itself

normally check if google play services installed on device googleplayservicesutil.isgoogleplayservicesavailable(this);, , display error dialog links google play services app on google play market.

something this:

int resultcode = googleplayservicesutil.isgoogleplayservicesavailable(this); if (resultcode != connectionresult.success) {    if (googleplayservicesutil.isuserrecoverableerror(resultcode)) {        googleplayservicesutil.geterrordialog(resultcode, this,                     play_services_resolution_request).show();    } else {        log.i(tag, "this device not supported.");        finish();    } } 

for more info can take on link: http://developer.android.com/google/play-services/setup.html#ensure


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -