app/src/main/java/com/vdocipher/sampleapp/MainActivity.java
/**
     * This method is called if updating fails; the error code indicates
     * whether the error is recoverable.
     */
This method is called if updating fails; the error code indicates
whether the error is recoverable.
This method is called if updating fails ; the error code indicates whether the error is recoverable .
@Override
    public void onProviderInstallFailed(int errorCode, Intent recoveryIntent) {
        GoogleApiAvailability availability = GoogleApiAvailability.getInstance();
        if (availability.isUserResolvableError(errorCode)) {
            availability.showErrorDialogFragment(
                    this,
                    errorCode,
                    ERROR_DIALOG_REQUEST_CODE,
                    dialog -> {
                        onProviderInstallerNotAvailable();
                    });
        } else {
            onProviderInstallerNotAvailable();
        }
    }
@ Override public void onProviderInstallFailed ( int errorCode , Intent recoveryIntent ) { GoogleApiAvailability availability = GoogleApiAvailability . getInstance ( ) ; if ( availability . isUserResolvableError ( errorCode ) ) { availability . showErrorDialogFragment ( this , errorCode , ERROR_DIALOG_REQUEST_CODE , dialog -> { onProviderInstallerNotAvailable ( ) ; } ) ; } else { onProviderInstallerNotAvailable ( ) ; } }
This method is called if updating fails; the error code indicates
 whether the error is recoverable.
This method is called if updating fails ; the error code indicates whether the error is recoverable .
// Recoverable error. Show a dialog prompting the user to // install/update/enable Google Play services. // The user chose not to take the recovery action // Google Play services is not available.