However, when I put getErrorDialog in, it stated that the method was depreciated and that I needed to use the โupdatedโ version.
GooglePlayServicesUtil.getErrorDialog deprecated in favor of GoogleApiAvailability.getErrorDialog , which is not a static method, as it was for GooglePlayServicesUtil . You can get a copy of GoogleApiAvailability this way
GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();
and call getErrorDialog on the returned instance
apiAvailability.getErrorDialog(this, resultCode, PLAY_SERVICES_RESOLUTION_REQUEST).show();
where is the Context object and resultCode is the returned value of isGooglePlayServicesAvailable(Context) . You can read about it here.
source share