Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- java.lang.IllegalStateException: Unrecognized type of request: Request{com.google.android.gms.tasks.zzu@f30b587}
- Save.setOnClickListener(new View.OnClickListener() {
- @Override
- public void onClick(View v) {
- saveusersetupinfirmation();
- }
- });
- profileimage.setOnClickListener(new View.OnClickListener() {
- @Override
- public void onClick(View v) {
- Intent galleryIntent = new Intent();
- galleryIntent.setAction(Intent.ACTION_GET_CONTENT);
- galleryIntent.setType("image/*");
- startActivityForResult(galleryIntent, GALLARY_PICK);
- }
- });
- userRef.addValueEventListener(new ValueEventListener() {
- @Override
- public void onDataChange(@NonNull DataSnapshot dataSnapshot) {
- String image = dataSnapshot.child("profileimage").getValue(String.class);
- Picasso.get()
- .load(image)
- .placeholder(R.drawable.profile)
- .into(profileimage, new Callback() {
- @Override
- public void onSuccess() {
- }
- @Override
- public void onError(Exception e) {
- System.out.println(e);
- Log.d("BFIT1", String.valueOf(e));
- e.printStackTrace();
- Toast.makeText(SetupActivity.this,"Error!",Toast.LENGTH_SHORT).show();
- }
- });
- }
- @Override
- public void onCancelled(@NonNull DatabaseError databaseError) {
- }
- });
- }
Add Comment
Please, Sign In to add comment