在联想这段时间,感觉自己收获不是怎么大,还是得靠自己一点一点的去积累,去挖掘,去探究去获取,再去记忆与应用,所以就自己写了一个简单的关于网络模块的APP定义流程:
在这里主要考虑关系到需要通过网络来处理的部分:注: 客户端解析统一使用PULL解析,服务端文件根据需求来定
<!--[if !supportLists]-->一.<!--[endif]-->字符效力处理:
<!--[if !supportLists]-->a) <!--[endif]-->方案一: 使用HttpClient
<!--[if !supportLists]--> i. <!--[endif]-->优点:使用方便
<!--[if !supportLists]--> ii. <!--[endif]-->缺点:数据冗余度大,可能会引用到一些没必要的数据或包文件
<!--[if !supportLists]-->b) <!--[endif]--> 方案二: 使用HttpURLConnection
<!--[if !supportLists]--> i. <!--[endif]-->优点:能解决一般的应用
<!--[if !supportLists]--> ii. <!--[endif]-->缺点:不能解决多想线程断点续传功能,有对SOCKET进行封装
<!--[if !supportLists]-->c) <!--[endif]-->方案三: 使用souckets
<!--[if !supportLists]--> i. <!--[endif]-->优点:可解决目前一般网络所存在的问题
<!--[if !supportLists]--> ii. <!--[endif]-->缺点:相对来说比较复杂
<!--[if !supportLists]-->d) <!--[endif]-->需要使用缓存机制,类似于可使用SOFTREFERENCE等来实现
<!--[if !supportLists]-->二.<!--[endif]-->图片效力处理
<!--[if !supportLists]-->a) <!--[endif]-->可参考字符效力处理
<!--[if !supportLists]-->三.<!--[endif]-->文件效力处理
<!--[if !supportLists]-->a) <!--[endif]-->可参考字符效力处理,推介使用Socket(不是必须的)。
<!--[if !supportLists]-->四.<!--[endif]-->….
<!--[if !supportLists]-->五.<!--[endif]-->
RemoteDB |
<!--[endif]-->