Hi,
I am using smartview to create an image search app. I need to share the images using Intent, so I load the image from Url. A few images are always loaded as ColorDrawable is I do imageView.getDrawable(). It is the same code loading all thumbnails in a grid, but a few pics are always loaded as ColorDrawable, and in that case my logic fails where I try to get bitmap from that file. Why does it happens this way?
Eg. from this json - https://ajax.googleapis.com/ajax/services/search/images?q=android&v=1.0&&rsz=8&imgsz=medium&start=2, the 4th object always loads as BitmapDrawable while 6th object always loads as ColorDrawable.
Hi, I am using smartview to create an image search app. I need to share the images using Intent, so I load the image from Url. A few images are always loaded as ColorDrawable is I do imageView.getDrawable(). It is the same code loading all thumbnails in a grid, but a few pics are always loaded as ColorDrawable, and in that case my logic fails where I try to get bitmap from that file. Why does it happens this way? Eg. from this json - https://ajax.googleapis.com/ajax/services/search/images?q=android&v=1.0&&rsz=8&imgsz=medium&start=2, the 4th object always loads as BitmapDrawable while 6th object always loads as ColorDrawable.