摘要:
package cn.com.sxp;import android.app.Activity;import android.os.Bundle;import android.view.View;import android.view.View.OnClickListener;import andro... 阅读全文
posted @ 2016-12-10 15:28
C语言答疑课堂
阅读(141)
评论(0)
推荐(0)
摘要:
转载http://www.eoeandroid.com/thread-97477-1-1.html小知识点:UDP协议和TCP协议的不同。UDP是把数据都打成数据包,数据包上自带通信的地址,但是数据包发出去之后UDP协议不能保证你能否收到。而TCP协议要求接收方收到数据后给个回应,当发送重要数据的时... 阅读全文
posted @ 2016-12-10 15:28
C语言答疑课堂
阅读(270)
评论(0)
推荐(0)
摘要:
转载http://www.eoeandroid.com/thread-61727-1-1.html一、Socket通讯机制1. TCP连接:面向连接的可靠传输协议,具有数据确认和数据重传机制,保证了发送数据一定能到达通信的对方。对数据完整性要求比较高的场合使用。手机能够使用联网功能是因为手机底层实现... 阅读全文
posted @ 2016-12-10 15:28
C语言答疑课堂
阅读(224)
评论(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语言答疑课堂
阅读(178)
评论(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语言答疑课堂
阅读(276)
评论(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语言答疑课堂
阅读(110)
评论(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语言答疑课堂
阅读(122)
评论(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语言答疑课堂
阅读(212)
评论(0)
推荐(0)
摘要:
listview是一个比较重要的UI组件,一切影响UI的操作,比如适配器从磁盘、网络或者数据库中加载数据的操作,最好都放在子线程中完成。子线程可以使用thread,不过那样比较老土,官方推荐使用AsyncTask。 AsyncTask会自动排队 execute() 任务,并且顺序执... 阅读全文
posted @ 2016-12-10 15:28
C语言答疑课堂
阅读(94)
评论(0)
推荐(0)
摘要:
可以再一个布局中通过“include”和“merge”元素进行复用其他的布局元素。比如如下一个布局: 这是一个可复用的布局文件,倘若有以下的布局文件: ...则包含了被复用的文件。当然,如果在包含者当中,需要调整被包含者的属性,也可以:这样就重新调整了被包含者的属性。 a... 阅读全文
posted @ 2016-12-10 15:28
C语言答疑课堂
阅读(96)
评论(0)
推荐(0)
浙公网安备 33010602011771号