authSubToken exception in Android
问题 I am using the following code to get Authsubtoken from my android application; following is the code: GoogleAuthUtil.getToken(myCtx, "mymail@gmail.com","oauth2:https://www.googleapis.com/auth/userinfo.profile") With this code, I get the following exception: com.google.android.gms.auth.UserRecoverableAuthException: NeedPermission How to overcome this exception? Any help is appreciated. 回答1: Using this exception ... } catch (UserRecoverableAuthIOException e) { startActivityForResult(e.getIntent