activity.runOnUiThread(new Runnable() {
@Override
public void run() {
OnDataIn();
} })
I'm on it...
I get this error on compiling:
error: cannot find symbol
[javac] activity.runOnUiThread(new Runnable() {
[javac] ^
When I type "Activity" in high capital letters, I get this error:
error: non-static method runOnUiThread(Runnable) cannot be referenced from a static context
hmm any ideas?
@SimpleFunction(description = "test.")
public void XThread(final int threadID){
AsynchUtil.runAsynchronously(new Runnable() {@Override
public void run() {
activity.runOnUiThread(new Runnable() {
@Override
public void run() {
ThreadFinishUI(threadID);
} });
}});
}
@SimpleEvent(description = "Event-Handler Thread")
public void ThreadFinishUI(int threadID){
EventDispatcher.dispatchEvent(this, "ThreadFinish", threadID);
}