Handler
共 12 篇文章
排序
Only the original thread that created
在service中回调时通知界面刷新了数据,就提示了如下异常: Only the original thread that created a view hierarchy can touch its...
Android中实现延时执行操作的几种方法
总结一下:前三种方式都是运行在子线程中,最后一种是在主线程中的。 实现延时执行操作的几种方法: 1.使用线程的休眠实现延时操作 new Thread() { @Override public void...