2016年12月10日
摘要: 不希望出现断层,在此将在新浪博客上写的一些文章链接到这里:http://blog.sina.com.cn/s/articlelist_1736782070_0_1.html 阅读全文
posted @ 2016-12-10 15:29 C语言答疑课堂 阅读(95) 评论(0) 推荐(0) 编辑
摘要: Introduction:-------------This document describes the syntax of Android.mk build filewritten to describe your C and C++ source files to the AndroidN... 阅读全文
posted @ 2016-12-10 15:29 C语言答疑课堂 阅读(105) 评论(0) 推荐(0) 编辑
摘要: Android NDK OverviewIntroduction:The Android NDK is a set of tools that allows Android application developersto embed native machine code compiled fr... 阅读全文
posted @ 2016-12-10 15:29 C语言答疑课堂 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 转载http://www.eoeandroid.com/thread-97477-1-1.html小知识点:UDP协议和TCP协议的不同。UDP是把数据都打成数据包,数据包上自带通信的地址,但是数据包发出去之后UDP协议不能保证你能否收到。而TCP协议要求接收方收到数据后给个回应,当发送重要数据的时... 阅读全文
posted @ 2016-12-10 15:28 C语言答疑课堂 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 转载http://www.eoeandroid.com/thread-61727-1-1.html一、Socket通讯机制1. TCP连接:面向连接的可靠传输协议,具有数据确认和数据重传机制,保证了发送数据一定能到达通信的对方。对数据完整性要求比较高的场合使用。手机能够使用联网功能是因为手机底层实现... 阅读全文
posted @ 2016-12-10 15:28 C语言答疑课堂 阅读(204) 评论(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 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) 编辑
摘要: 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) 编辑
摘要: The previous lesson showed you how to define a class that manages thread pools and the tasks that run on them. This lesson shows you how to run a task... 阅读全文
posted @ 2016-12-10 15:28 C语言答疑课堂 阅读(112) 评论(0) 推荐(0) 编辑
摘要: The previous lesson showed how to define a task that executes on a separate thread. If you only want to run the task once, this may be all you need. I... 阅读全文
posted @ 2016-12-10 15:28 C语言答疑课堂 阅读(202) 评论(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. 正式布局界面时,先在纸上画出整个布局,并考虑用什么布局比较适合;2. 布局界面先做出框架,并用不同的背景颜色标记出来,确保大的布局框架式正确的;3. 接着在每个大的布局框架内布局小的布局;4. 可视化界面提供了不同的尺寸,可以查看在不同的尺寸界面下,自己的布局是否合适。根据官方说法,可以先选择... 阅读全文
posted @ 2016-12-10 15:28 C语言答疑课堂 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 好久未更新博客了。人都是这样,刚开始对某一样东东冲劲十足,时间一长,很难坚持下去了,我这博客也是。所以我要打破成规,继续更新。 本次博客谈谈adil的用法。aidl的全称叫什么来着忘了,不过不要紧,重点不是叫啥名,而是要领会这玩意儿是做啥的。扯远一点,我是越来越觉得,会具体的什... 阅读全文
posted @ 2016-12-10 15:28 C语言答疑课堂 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 主文件package cn.com.sxp;import android.app.Activity;import android.os.Bundle;import android.util.Log;import android.widget.RatingBar;import android.widg... 阅读全文
posted @ 2016-12-10 15:28 C语言答疑课堂 阅读(101) 评论(0) 推荐(0) 编辑