I have a List with Bitmaps. I want to resize the bitmaps in the background thread, and call an another method with the list.
Flowable.fromIterable(imageList)
.map(new Function<Bitmap, Bitmap>() {
@Override
public Bitmap apply(Bitmap bitmap) throws Exception {
Bitmap resized = ImageUtils.getInstance().getResizedBitmap(bitmap,1200);
return resized;
}
})
.subscribeOn(Schedulers.io())
.observeOn(Schedulers.io())
.subscribeWith(
//
);
I want to get the result list (with all resized images) and handle errors. Which subscriber can do it?
Any suggestion?