Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void onClick(View v) {
- new Thread(new Runnable() {
- public void run() {
- // a potentially time consuming task
- final Bitmap bitmap =
- processBitMap("image.png");
- mImageView.post(new Runnable() {
- public void run() {
- mImageView.setImageBitmap(bitmap);
- }
- });
- }
- }).start();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement