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

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -