安卓->I/Choreographer: Skipped 44 frames! The application may be doing too much work on its main 解决方案

Thread ocrThread = new Thread(){

    @Override
    public void run() {
        runOnUiThread(new Runnable() {
            @Override
            public void run() {
                Intent intent = new Intent();
                //把返回数据存入Intent
                intent.putExtra("selectlist", (Serializable) mTreeNodes);
                //设置返回数据
                setResult(RESULT_OK, intent);
                //关闭Activity
                finish();
            }
        });
    }
};
ocrThread.start();

你可能感兴趣的:(安卓)