Code example for UserRecoverableAuthException

Methods: getIntent

0
            // GooglePlayServices.apk is either old, disabled, or not present. 
 
        } catch (UserRecoverableAuthException userRecoverableException) {
            // Unable to authenticate, but the user can fix this. 
            // Forward the user to the appropriate activity. 
            ctx.startActivity(userRecoverableException.getIntent());
 
        } catch (GoogleAuthException fatalException) {
            Log.e("UserManager", "Failed to get Token", fatalException);
        } 
        catch (Exception e)
        { 
            e.printStackTrace();
        } 
        return null; 
    } 
 
}