Im trying to customise the Dialog where it displays errors based on a status code coming from the method 

> 
> googleApiAvailability.isGooglePlayServicesAvailable(activity);
> 
> 
> 

This method returns a status code that then gets passed into a method

> 
> googleApiAvailability.getErrorDialog(activity, status, 2404).show();
> 
> 
> 

Which then shows a dialog to the user asking them whether they need to update Google Play Services or enable them etc based on the error code ("status" in this case). From what i can tell is they set the dialog text based on the status, but I want to customise it a bit because I am using it for notifications so I want to say in the dialog that the user wont be able to use notifications without this feature installed/enabled/updated on the app?

Also I want to be able to add a Cancel button with custom text like "It's Ok" or something along those lines?

I've seen something similar in another app and thought it was a great idea.

EDIT:

```
   public static boolean checkGooglePlayServices(Activity activity) {
    GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.getInstance();
    int status = googleApiAvailability.isGooglePlayServicesAvailable(activity);
    if (status != ConnectionResult.SUCCESS) {
      if (googleApiAvailability.isUserResolvableError(status)) {
        Dialog dialog = googleApiAvailability.getErrorDialog(activity, status, 1);
        dialog.setTitle("This is a test title");
        dialog.show();
      }
      return false;
    }
    return true;
  }

```