Я был в состоянии получить фотографию URI с помощью этого кода из firebase докFirebase Google Вход - Фото URI
FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();
if (user != null) {
for (UserInfo profile : user.getProviderData()) {
// Id of the provider (ex: google.com)
String providerId = profile.getProviderId();
// UID specific to the provider
String uid = profile.getUid();
// Name, email address, and profile photo Url
String name = profile.getDisplayName();
String email = profile.getEmail();
Uri photoUrl = profile.getPhotoUrl();
};
}
У меня также есть ImageView под названием КОМП, и я попробовал этот код.
mPic.setImageURI(null);
mPic.setImageURI(photoUrl);
К сожалению, я не могу просмотреть фотографию. Любые советы о том, как это сделать?
ли вы напечатать значение photoUrl? Это http-url? – steve
это https url –