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

c# - ASP.NET MVC Sequence contains no matching element -

java - Parsing XML, skip certain tags -

rest - How to invalidate user session on inactivity in a stateless server? -