- 博客(5)
- 资源 (9)
- 收藏
- 关注
转载 python为何没有switch语句?
本来都没有留意,今天在写个小东西的时候,突然发现python好像没有switch语句?然后感觉很纳闷,顺手网上搜一下,转篇文章和大家分享~ 原文地址:http://www.cnpythoner.com/post/80.html 感谢原作者智慧! 如果你是把python作为入门编程语言的话,你可能不会在意python有没有switch语句,如果你在接触python前接触过其它的 语言比如说c
2014-01-09 21:14:01 3560 1
原创 多个循环的AlarmManager管理
本文涉及内容: 一,如何设置多个AlarmManager提醒 二,多个循环的AlarmManager逻辑管理 最近在捣鼓的一个小proj涉及到需要定时提醒的问题,每天的三个特定时间到点提醒。涉及到类似问题的,我觉得AlarmManager是最佳选择,简单粗暴。因为之前就用过AlarmManager,所以感觉轻车熟路,没想到一开始就碰壁了,首先是一打开程序,就会莫名其妙地提醒,其次,存
2014-01-06 04:43:13 1261
转载 子线程调用Toast报Can't create handler inside thread that has not called Looper.prepare() 错误
原文章链接:http://hi.baidu.com/_guangren_/item/8e61f31cecad9a701009b5b7 感谢原作者智慧。 我今天是在子线程中调用AlertDialog的时候报的Can't create handler inside thread that has not called Looper.prepare() ,在前后加Looper.prepare();和
2014-01-01 22:57:53 930
原创 解决:Only the original thread that created a view hierarchy can touch its views
Only the original thread that created a view hierarchy can touch its views 从字面就知道是由于没在主线程中更新UI所导致的,解决方案也很简单,只要加handler就好了。 比如我自己的应用环境: private Handler handler = new Handler() { public void han
2014-01-01 22:52:40 691
原创 Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.
今天也碰到了这个神奇的错误,就在升级了Build-tools 19之后;;;然后网上搜了下说降回18.1.1就好,果然好了,但是why
2014-01-01 05:26:30 530
Two Scoops of Django Best 1 6 pdf February 1 2014
2014-08-19
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人