上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页
  2016年12月10日
摘要: In the previous lesson you learned how to start a task on a thread managed by ThreadPoolExecutor. This final lesson shows you how to send data from th... 阅读全文
posted @ 2016-12-10 15:28 C语言答疑课堂 阅读(96) 评论(0) 推荐(0) 编辑
摘要: This lesson shows you how to implement a simple application that connects to the network. It explains some of the best practices you should follow in ... 阅读全文
posted @ 2016-12-10 15:28 C语言答疑课堂 阅读(260) 评论(0) 推荐(0) 编辑
摘要: This lesson describes how to write applications that have fine-grained control over their usage of network resources. If your application performs a l... 阅读全文
posted @ 2016-12-10 15:28 C语言答疑课堂 阅读(153) 评论(0) 推荐(0) 编辑
摘要: This lesson shows you how to implement a Runnable class, which runs the code in its Runnable.run() method on a separate thread. You can also pass a Ru... 阅读全文
posted @ 2016-12-10 15:28 C语言答疑课堂 阅读(99) 评论(0) 推荐(0) 编辑
摘要: The speed and efficiency of a long-running, data-intensive operation often improves when you split it into smaller operations running on multiple thre... 阅读全文
posted @ 2016-12-10 15:28 C语言答疑课堂 阅读(112) 评论(0) 推荐(0) 编辑
摘要: When an application component starts and the application does not have any other components running, the Android system starts a new Linux process for... 阅读全文
posted @ 2016-12-10 15:28 C语言答疑课堂 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 一、面向对象的编程1.可维护性:要改,只需要更改要改动的地方;2.可复用:代码单元可以再其他地方被反复使用;3.可扩展:要加新功能,只需很方便地增加即可;4.灵活性:代码单元的重新组合要很方便,以此实现新的功能。 二、面向对象的好处1.封装。通过封装,比如就可以将业务实现与界面显示实现分开;通过封装... 阅读全文
posted @ 2016-12-10 15:28 C语言答疑课堂 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 在andorid开发中,内存小往往是个问题。android设备的内存,分配给每一个应用的内存,至少是16M,在其中跑应用的各个组件。如果应用使用到不少的图片的话,则16M内存很快的就消耗掉了。还有另一个可能导致内存泄露的因素,就是过多的对context的长时间的引用。 在andro... 阅读全文
posted @ 2016-12-10 15:28 C语言答疑课堂 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 可以再一个布局中通过“include”和“merge”元素进行复用其他的布局元素。比如如下一个布局: 这是一个可复用的布局文件,倘若有以下的布局文件: ...则包含了被复用的文件。当然,如果在包含者当中,需要调整被包含者的属性,也可以:这样就重新调整了被包含者的属性。 a... 阅读全文
posted @ 2016-12-10 15:28 C语言答疑课堂 阅读(84) 评论(0) 推荐(0) 编辑
摘要: listview是一个比较重要的UI组件,一切影响UI的操作,比如适配器从磁盘、网络或者数据库中加载数据的操作,最好都放在子线程中完成。子线程可以使用thread,不过那样比较老土,官方推荐使用AsyncTask。 AsyncTask会自动排队 execute() 任务,并且顺序执... 阅读全文
posted @ 2016-12-10 15:28 C语言答疑课堂 阅读(86) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页