Returning value from thread Java/ Android
问题 I have the following thread in my android class. How can I get the value of err from the thread??? public int method(){ new Thread(new Runnable() { int err; @Override public void run() { err = device.verify(30, 5, coderChoice, detectModeChoice, 0, listSearch, callbackCmd, MTFPSD.this, matchingScore); updateView("Finger Captured Successfully", err); } }).start(); return err; } I want the value to be the return value of the method but for the life of me I can't get the value... 回答1: You have