Processing Forum
public void onClick(View v) {
new Thread(new Runnable() {
public void run() {
final Bitmap bitmap = loadImageFromNetwork("http://example.com/image.png");
mImageView.post(new Runnable() {
public void run() {
mImageView.setImageBitmap(bitmap);
}
});
}
}).start();
}
mImageView.post(new Runnable() It means that the thread is handle by user interface,
and not UI Main interface.
How could I tell processing about this user interface / view to free MAIN thread
from those loading operations ?
I'm pretty in hurry, any help or advices would be really appreciated !! thanks.
pauline.
thanks in advance