
Android
文章平均质量分 76
di4zhibiao
这个作者很懒,什么都没留下…
展开
-
为什么我的adapter.notifyDataSetChanged()不起作用?
1.一开始这样的: case R.id.scann_button: //发送扫描生成音乐列表广播 Intent broadcast_scann = new Intent(); broadcast_scann.setAction(Constant.DB_SCANNMUSIC); sendBroadcast(broadcast_scann);原创 2016-08-01 22:16:34 · 1040 阅读 · 0 评论 -
Activity生命周期
子曰:溫故而知新,可以為師矣。《論語》 学习技术也一样,对于技术文档或者经典的技术书籍来说,指望看一遍就完全掌握,那基本不大可能,所以我们需要经常回过头再仔细研读几遍,以领悟到作者的思想精髓。 近来回顾了一下关于Activity的生命周期,参看了相关书籍和官方文档,也有了不小的收获,对于以前的认知有了很大程度上的改善,在这里和大家分享一下。 熟悉javaEE的朋友们都了解serv转载 2016-07-30 23:38:31 · 308 阅读 · 0 评论 -
The connection to adb is down, and a severe error has occured.
遇到了几次这个问题: The connection to adb is down, and a severe error has occured. You must restart adb and Eclipse.Please ensure that adb is correctly located at 'E:\setups\android\android-2.1_r01-windo转载 2016-07-30 23:36:56 · 251 阅读 · 0 评论 -
SQLiteOpenHelper类的onCreate方法什么时候被执行--只有database.db不存在的时候
Java code ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 public class MyHelper extends SQLiteOpenHel转载 2016-07-27 20:06:51 · 2908 阅读 · 1 评论 -
Service生命周期
转载自:http://www.cnblogs.com/jisheng/archive/2011/12/13/2286262.html 使用context.startService() 启动Service 其生命周期为context.startService() ->onCreate()- >onStart()->Service running-->context.stopServi转载 2016-07-27 20:04:32 · 272 阅读 · 0 评论