2018年10月25日
摘要: D/response.code()==: 200D/response.message()==: OKD/res==: {"result":"ok","airTemperature":19,"airTempMaxValue":25,"airTempMinValue":18,"airHumidity": 阅读全文
posted @ 2018-10-25 15:53 谌桂枝 阅读(462) 评论(0) 推荐(0) 编辑
  2018年10月21日
摘要: 将new Handle 放入线程中,会报错Can't create handler inside thread that has not called Looper.prepare() 一、为什么呢? 因为toast的实现需要在activity的主线程才能正常工作,所以传统的非主线程不能使toast 阅读全文
posted @ 2018-10-21 13:02 谌桂枝 阅读(340) 评论(0) 推荐(1) 编辑
  2018年10月15日
摘要: /* //课前练习:两道题 //编程计算:一个白领工作加班了89个小时,编程计算共加了多少天零多少小时? int x=89; int y=89/24;//存储加了几天班 int z=89%24; System.out.println("加班了"+y+"天"+z+"小时"); //求长方形的周长c和面 阅读全文
posted @ 2018-10-15 11:59 谌桂枝 阅读(145) 评论(0) 推荐(0) 编辑