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

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

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