0
我使用谷歌登錄我的Android應用程序,關閉最近我收到錯誤運行時異常報告「GoogleApiClient有一個可選的Plus.API是沒有連接到另外,使用GoogleApiClient.hasConnectedApi(Plus.API)守護這個調用。「「GoogleApiClient有一個可選的Plus.API並沒有連接到加」
我使用谷歌登錄我的Android應用程序,關閉最近我收到錯誤運行時異常報告「GoogleApiClient有一個可選的Plus.API是沒有連接到另外,使用GoogleApiClient.hasConnectedApi(Plus.API)守護這個調用。「「GoogleApiClient有一個可選的Plus.API並沒有連接到加」
在活動結果從谷歌的標誌在使用本
if (mGoogleApiClient.hasConnectedApi(Plus.API)) {
Person person = Plus.PeopleApi.getCurrentPerson(mGoogleApiClient);
if (person != null) {
//Take the required action
Log.i(TAG, "Display Name: " + person.getDisplayName());
Log.i(TAG, "Gender: " + person.getGender());
Log.i(TAG, "About Me: " + person.getAboutMe());
Log.i(TAG, "Birthday: " + person.getBirthday());
Log.i(TAG, "Current Location: " + person.getCurrentLocation());
Log.i(TAG, "Language: " + person.getLanguage());
} else {
Log.e(TAG, "Error!");
}
獲得