android - Force thread to update ImageView immediately -



android - Force thread to update ImageView immediately -

problem: attempting display image within of imageview , perform computation while image displayed. supposed loop through multiple times.

instead, imageview not update until computation done, , logcat displayed "skipped xxxx amount of frames! application may doing much work on main thread."

question: how forcefulness thread pause computation such updates imageview , doesn't skip frames?

things have tried:

`myimageview.setimagebitmap(mybitmap);` `myimageview.invalidate();` `myimageview.setvisibility(imageview.invisible);` `myimageview.setvisibility(imageview.visible);`

any help or guidance appreciated!

computation takes more 16ms has run in different thread ui/main thread. not need forcefulness show image, right.

android android-layout

Comments

Popular posts from this blog

Php operator `break` doesn't stop while -

ubuntu - Bash Script to Check That Files Are Being Created -

vim: Search & replace -