Loading files from local path - abbashosseini/Vinci GitHub Wiki
you can get list of bitmap object or list of file object in UI thread
but its not going to display any of them because the UI thread
dont have knowledge if any object there you wanna to access to displayed some where so this you have 3 ways but i like this 2 ways
// add object to ui thread
viewHolder.image.post(new Runnable() {
@Override
public void run() {
Bitmap bp = Vinci
.base(context)
.process()
.decodeFile(uri);
viewHolder.image.setImageBitmap(bp)
}
});
// load image Asynchonously
Vinci
.base(context)
.process()
.decodeFile(uri, new AsyncBitmap<Bitmap>() {
@Override
public void onFinish(Bitmap object) {
viewHolder.image.setImageBitmap(object);
}
});
use Bundle