last day (14 days later) » 

7:19 AM
-2
Q: all images not displaying from the same url

MoudizNot all images are displaying when running my app. I am getting from json this result {"result":[{"id":"1","name":null,"path":"http://api.androidhive.info/json/movies/1.jpg"},{"id":"2","name":null,"path":"http://www.justedhak.comlu.com/images/uploaded_images.jpg"},{"id":"32","name":null,"path...

 
Ofcourse .the url images are identical one them are shown the otjer are not
@bnk yes now I am accessed to my lap ill post the adapter I guess problem in it
@FarooqArshed yes the url is working now check please. I am loading this image identical in the app one time this shown others are not
@BNK you there ? did you check code ?
@e4c5 I edit my question , I copied the url wrong.
 
Now I'm a little confused about: "I guess my error is here grid view adapter" . Have you tried to load a images without the Adapter? E.g in a Imageview? Could you test that? Just to be sure it is not a matter of view reusing/recycling. It's hard to help at this point I guess.
 
@oberflansch without the adapter the url image is loading. if you have any question tell me
 
Hmm well. We have got our own fuctions to cache and load image, so we don't use Picasso. I guess I'm not the right person to help you at this point. I would try to use an other load logic like this and remove the Viewholder (inflate every time). That might help to find the problem.
 
@oberflansch can you please explain how to inflate everytime ? by the was thanks for your support
 
7:19 AM
public View getView(int position, View convertView, ViewGroup parent) { View row = convertView; LayoutInflater inflater = LayoutInflater.from(mcontext); View row = inflater.inflate(layoutResourceId, parent, false); return row; }
 
@oberflansch sorry I didnt understand can you explain please
 
This is slow and somehow dirty. But create a new view every time, to ensure that one image is loaded for one view.
As I said. Picasso might cause some problems but I am NOT sure.
 
7:37 AM
hi
 
Hey. Have you found out something new?
It's pretty hard to figure out what might be the problem here, cause I don't know what picasso does.
So at first I would try to make sure, that picasso is not the reason for the problem.
Therefore I would try to test an other image load function
after that I would make sure, that it is not a matter of view recycling
I you know that none of your views are reused in your test scenario, there is no need to try the inflating stuff
 
 
1 hour later…
9:18 AM
sorry for late reply actually I didnt ivenstigate my issue tonight I will when I finish my work , ill follow your steps and check from were is the problem
 

last day (14 days later) »