活动完成(在应用程序MyapplicationName中)没有响应?

时间:2014-03-06 12:47:14

标签: android

我有这个线程为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)

0 个答案:

没有答案