我想创建dialog
临时时间(说几秒钟后应该自动取消)。
我用这段代码创建对话框:
Dialog dl=new Dialog(myclass.this);
dl.setTitle("HELLE WORLD");
dl.setCanceledOnTouchOutside(true);
dl.show();
我用这个结束对话:dl.cancel();
但是什么时候写这个?(例如,我在完成对话 5 sn 之后。)