不显示 "This app won't run without google play services" 对话框

Don't show "This app won't run without google play services" dialog

我在我的应用中使用 Google Play 服务,但没有必要 运行。但是,当设备没有 Google Play 服务时,它会显示一个对话框,其中显示: This app won't 运行 without google play services.

问题是,我可以更改此文本吗?我没找到。

我的代码:

private boolean checkPlayServices() {
    GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();
    int resultCode = apiAvailability.isGooglePlayServicesAvailable(this);
    if (resultCode != ConnectionResult.SUCCESS) {
        if (apiAvailability.isUserResolvableError(resultCode)) {
            apiAvailability.getErrorDialog(this, resultCode, 
                PLAY_SERVICES_RESOLUTION_REQUEST).show();
        } else {
            Log.i(TAG, "This device is not supported.");
            finish();
        }
        return false;
    }
    return true;
}

我猜你可以只显示自定义对话框而不是 apiAvailability.getErrorDialog(this, resultCode, PLAY_SERVICES_RESOLUTION_REQUEST).show();