UserProfileChangeRequest setPhotoUri - How is this done?

If I want to allow users to upload their photo from the device:

  • What is the required image format?

  • Image file size?

  • Image sizes?

  • Where can i download it?

the code:

UserProfileChangeRequest profileUpdates = new UserProfileChangeRequest.Builder()
        .setDisplayName("Jane Q. User")
        .setPhotoUri(Uri.parse("https://example.com/jane-q-user/profile.jpg"))
        .build();
+4
source share
1 answer

Thanks to Frank for the quick answers.

I wrote a few bits when loading into the firebase repository, and then tried to insert it here, but "incorrectly formatted as code" prevented me from loading.

+1
source

Source: https://habr.com/ru/post/1648061/


All Articles