In the example they have for google play services they handle possible version update like this:
int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(from);
if (resultCode != ConnectionResult.SUCCESS) {
if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {
GooglePlayServicesUtil.getErrorDialog(resultCode, context,
PLAY_SERVICES_RESOLUTION_REQUEST).show();
} else {
error(TAG, "this device is not supported");
}
This results in a message something like
"Your application won't work if you don't update Google Services".
For my application this statement is too strong, as I only use the services to provide for some oprional functionality.
Can I somehow replace the GooglePlayServicesUtil.getErrorDialog()
dialog with my own one?
Ideally I would like to have something like
"Google Services update is desirable. Yes/No"