Category : picasso

i have done all the steps stated in https://developers.facebook.com/docs/facebook-login/android%20 i am getting the response as well but when i tried to show profile image to an image view i am getting an error like this GraphResponse: {HttpStatus: 400, errorCode: 100, subErrorCode: 33, errorType: GraphMethodException, errorMessage: Unsupported get request. Object with ID ‘3282910721234’ does not exist, ..

Read more

Need help with using Picasso lib in android studio. I want to use it to load image in ImageView. So i added implementation in build.gradle and this was compled to my app. But there is no "get()" or old "with()" methods. cant see get() in the list I found it by this way: Picasso picasso ..

Read more

I am using Retrofit API to access my Laravel site data. I am not able to display images in my android app. Here is my Laravel code to save images in my Laravel site. $path = ‘images/no-thumbnail.jpeg’; if($request->has(‘thumbnail’)){ $extension = ".".$request->thumbnail->getClientOriginalExtension(); $name = basename($request->thumbnail->getClientOriginalName(), $extension).time(); $name = $name.$extension; $path = $request->thumbnail->storeAs(‘images’, $name, ‘public’); } Here ..

Read more

My Upload Code : package com.example.mfapp; public class Upload { private String mName; private String mImageUrl; public Upload() { } public Upload(String name, String imageUrl) { if (name.trim().equals("")) { name = "No Name"; } mName = name; mImageUrl = imageUrl; } public String getName() { return mName; } public void setName(String name) { mName = ..

Read more

Im trying to load images in a RecyclerView element: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" xmlns:app="http://schemas.android.com/apk/res-auto"> <androidx.cardview.widget.CardView android:layout_width="match_parent" android:layout_height="wrap_content" app:cardCornerRadius="20dp" android:id="@+id/cardview" android:layout_marginTop="20dp"> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/innerrl" android:layout_marginTop="20dp" android:layout_marginBottom="20dp"> <ImageView android:layout_width="50dp" android:layout_height="50dp" android:layout_alignParentStart="true" android:layout_centerVertical="true" android:layout_marginStart="20dp" android:id="@+id/thumbnail"/> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_alignParentTop="true" android:layout_marginTop="10dp" android:id="@+id/name"/> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/desc" android:layout_toEndOf="@+id/thumbnail" android:layout_marginStart="20dp" android:layout_below="@+id/name"/> </RelativeLayout> </androidx.cardview.widget.CardView> </RelativeLayout> RecyclerView adapter: ..

Read more

I have this exception java.lang.IllegalArgumentException: Target must not be null. at com.squareup.picasso.RequestCreator.into(RequestCreator.java:682)`enter code here` at com.squareup.picasso.RequestCreator.into(RequestCreator.java:665) at slot.slot.slotapp.PerfilFragment.onCreate(PerfilFragment.java:66) and I don’t know what to do, my code: This is the onCreate GoogleSignInAccount acct = GoogleSignIn.getLastSignedInAccount(getContext()); if (acct != null) { personPhoto = acct.getPhotoUrl(); Picasso.get().load(personPhoto).into(imageView); What I should put on the onCreateView? Source: Android Studio..

Read more

I’m using Firebase Auth to manage a user’s profile. The users are able to set avatar for their account using firebase auth’s stock profile builder. My code for setting avatar is protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) { super.onActivityResult(requestCode, resultCode, data); switch(requestCode) { case CODE_PICK: { if(resultCode == Activity.RESULT_OK) { if(data != ..

Read more