我有这个线程为onTouchEvent()
private Runnable disconnectCallback = new Runnable() {
@Override
public void run() {
// Perform any required operation on disconnect
try {
wait();
} catch (InterruptedException e) {
e.printStackTrace();
}
final Logout l=new Logout();
l.setContext(Ac2.this);// passing context of Ac3.java to Logout.java
l.execute(sessid,uname);
}
};
当用户触摸屏幕时,会调用onEventTouch()
public boolean onEventTouch(MotionEvent event) {
disconnectCallback.notify();
return true;
};
然后应用程序停止并在模拟器上给出以下错误
Activity done(in application MyapplicationName)Not Responding(wait or ForceClose)