konnte ich das Foto URI mit diesem Code aus dem Feuerbasis doc bekommenFirebase Google Anmelden - Foto 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();
};
}
Ich habe auch ein Image mpic genannt und ich versuchte, diesen Code.
mPic.setImageURI(null);
mPic.setImageURI(photoUrl);
Leider kann ich das Foto nicht anzeigen. Irgendwelche Tipps, wie man das macht?
Haben Sie photoUrl Wert ausdrucken? Ist es http URL? – steve
ist es ein https URL –