I have a worker thread that creates a runnable object and calls runOnUiThread on it, because it deals with Views and controls. I\'d like to use the result of the work of the
Just scratching out the highlights
synchronized( myRunnable ) { activity.runOnUiThread(myRunnable) ; myRunnable.wait() ; // unlocks myRunable while waiting }
Meanwhile... in myRunnable...
void run() { // do stuff synchronized(this) { this.notify(); } }