ProgressDialog dismiss not attached to window manager
来源:互联网 发布:淘宝清理缓存后会怎样 编辑:程序博客网 时间:2024/06/05 00:16
使用ProgressDialog,在非UI线程进行dismiss ()时,会出现 not attached to window manager错误。
通过使用以下代码解决。
@Override//如果activity不存在销毁dialogprotected void onDestroy() { // TODO Auto-generated method stub try{ pd.dismiss(); }catch (Exception e) { System.out.println("pd取消,失败!"); // TODO: handle exception } super.onDestroy();}
0 0
- ProgressDialog dismiss not attached to window manager
- progressDialog not attached to window manager error!
- 自定义Dialog dismiss时 View not attached to window manager
- not attached to window manager
- view not attached to window manager
- View not attached to window manager
- illegalargumentexception: view not attached to window manager
- View not attached to window manager
- View not attached to window manager解决方案
- View not attached to window manager
- View not attached to window manager解决方案
- View not attached to window manager解决方案
- View not attached to window manager解决方案
- View not attached to window manager解决方案
- View not attached to window manager解决方案
- View not attached to window manager解决方案
- View not attached to window manager
- android View not attached to window manager
- Myeclipse下部署项目以及JSP的连接
- Matlab问答day3
- 第一行代码学习笔记---安卓学习路线图
- 大数相乘、大数相加、大数相减Java版本
- Mysql各种存储引擎的特性以及如何选择存储引擎
- ProgressDialog dismiss not attached to window manager
- 数据结构实验图论一:基于邻接矩阵的广度优先搜索遍历
- 对系统自带的框架MapKit的应用
- assets路径 资源uri
- jetty模拟服务端作为测试桩进行接口测试详细介绍
- HTTP协议由浅入深
- [Leetcode #1]Two Sum 从数组中找出和为特定值的两个数
- iOS企业级开发者账号申请
- 主从复制、备份恢复方案生产环境实战