现在的位置: 首页 > 综合 > 正文

app网络模块定义

2013年09月04日 ⁄ 综合 ⁄ 共 1391字 ⁄ 字号 评论关闭

在联想这段时间,感觉自己收获不是怎么大,还是得靠自己一点一点的去积累,去挖掘,去探究去获取,再去记忆与应用,所以就自己写了一个简单的关于网络模块的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

<!--[if !vml]-->流程图: 磁盘: RemoteDB<!--[endif]-->简单业务流程图:

 


<!--[endif]-->

【上篇】
【下篇】

抱歉!评论已关闭.