Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Intent intent = new Intent();
- intent.setType("image/*");
- intent.setAction(Intent.ACTION_GET_CONTENT);
- startActivityForResult(Intent.createChooser(intent,"Select Picture"), PICK_IMAGE_REQUEST);
- FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();
- UserProfileChangeRequest profileUpdates = new UserProfileChangeRequest.Builder()
- .setPhotoUri(Uri.parse(""))//Falta la eleccion de la foto
- .build();
- user.updateProfile(profileUpdates)
- .addOnCompleteListener(new OnCompleteListener<Void>() {
- @Override
- public void onComplete(@NonNull Task<Void> task) {
- if (task.isSuccessful()) {
- }
- }
- });
- }
Add Comment
Please, Sign In to add comment