REUSE IMAGE FROM CACHE USING UNIVERSAL IMAGE LOADER (ANDROID)
$10-30 USD
Ditutup
Dibuat lebih dari 8 tahun yang lalu
$10-30 USD
Dibayar ketika dikirim
I'm trying to get bitmap from cache using this code to reload and use it on backgrounds LAYOUT. Any fast help would be appreciated. Here is the code:
[login to view URL](urlimg, imageloadingListener) {
public void onloadingcomplete() {
File imageFile = [login to view URL]().get(imageUri);
String path = [login to view URL](); // or [login to view URL]()
Bitmap bit = null;
try {
bit = drawable_from_url(urlimg);
} catch (IOException e) {
// TODO Auto-generated catch block
[login to view URL]();
}//new BitmapDrawable(getBitmap(urlimg));
Drawable drawableBitmap = new BitmapDrawable(getResources(), bit);
final int sdk = android.os.Build.VERSION.SDK_INT;
if(sdk < android.os.Build.VERSION_CODES.JELLY_BEAN) {
[login to view URL](drawableBitmap);
} else {
[login to view URL](drawableBitmap);
}
}