REUSE IMAGE FROM CACHE USING UNIVERSAL IMAGE LOADER (ANDROID)
$10-30 USD
ปิดแล้ว
โพสต์ มากกว่า 8 ปีที่ผ่านมา
$10-30 USD
ชำระเงินเมื่อส่งงาน
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);
}
}