Dialog getErrorDialog ( int errorCode , int requestCode ) { final Dialog dialog = GoogleApiAvailability . getInstance ( ) . getErrorDialog ( activity , errorCode , requestCode ) ; dialog . setOnDismissListener ( new DialogInterface . OnDismissListener ( ) { @ Override public void onDismiss ( DialogInterface dialogInterface ) { resolvingError = false ; } } ) ; return dialog ; }
Helper to create a new dialog from an error code .