Volley主页https://android.googlesource.com/platform/frameworks/volleyhttp://www.youtube.com/watch?v=yhv8l9F44qo&feature=player_embedded1. 什么是Volley在这之前,...
分类:
移动开发 时间:
2015-04-26 01:14:00
阅读次数:
157
publicclassNetUtil{
publicstaticfinalintNETWORN_NONE=0;//无网络
publicstaticfinalintNETWORN_WIFI=1;//wife
publicstaticfinalintNETWORN_MOBILE=2;//手机
/**
*获取当前网络的状态
*@paramcontext
*@return
*/
publicstaticintgetNetworkState(Contextcontext){
Connect..
分类:
移动开发 时间:
2015-04-25 00:22:34
阅读次数:
173
分类:android 网络编程android2012-09-07 23:5312656人阅读评论(4)收藏举报androidbuffernullfilejavaAndroid要实现文件上传,可以利用Socket上传,也可以模拟Web进行上传,但是如果是使用第一种方式上传,严格的话就得使用TCP,这样...
分类:
移动开发 时间:
2015-04-24 21:08:38
阅读次数:
170
该笔记是用来实时获取网络的状态,有点想QQ的断网提醒,为了以后的工作中用到,就在此处写下关于此判断的代码,下面就是写的一些代码:packagecom.example.nettest;
importreceiver.NetReceiver;
importandroid.app.Activity;
importandroid.content.IntentFilter;
importandro..
分类:
移动开发 时间:
2015-04-19 19:40:09
阅读次数:
170
RoboSpice是一个使你建立异步的长时间的运行任务异常轻松的一个网络库,在网络请求,缓存支持,和提供开箱即用的rest请求方面尤为强大
特性如下
支持 SDK版本8以上的版本
异步执行网络请求(后台服务)
支持开箱即用的rest(使用了 Spring Android or Google Http Client or Retrofit).)
你的查询使用POJOs 作为参数,你会获得POJOs的请...
分类:
移动开发 时间:
2015-04-16 10:23:32
阅读次数:
179
编写Android网络程序时难免会遇到手机时间不准确的问题,本文总结了一些常用的时间获取与校正方法:转载请注明:http://blog.csdn.net/xzy20461.获取本机当前时间:Time local = new Time();local.set(System.currentTimeMil...
分类:
移动开发 时间:
2015-04-13 18:05:14
阅读次数:
453
接收队列 receive_queue接收请求 receive_request -> object_identifier接收通知 receive_notify -> call_back ?发送队列 send_queue发送请求 send_request -> object_identifier + c...
分类:
移动开发 时间:
2015-04-11 01:12:47
阅读次数:
171
Volley是2013年Google I/O上发布的,它是Android平台上的网络通信库,对常用的网络通信功能作了封装,能使网络通信更快,更简单,更健壮。以前使用网络通信一般都是用AsyncTaskLoader、HttpURLConnection、AsyncTask等。
Volley适合数据量小但通信频繁的情况下
Volley架构
下图就是Google I/O 演讲时使用的图片...
分类:
移动开发 时间:
2015-04-10 18:03:56
阅读次数:
316
通过编写客户端,服务器端代码完成一个Android登陆实战项目项目分为6个部分服务器:Servlet客户端:Activity(界面)客户端:Thread和Handler客户端:HttpClient-HttpGet客户端:HttpClient-HttpPost客户端也就是我们的手机客户端第一部分.服务器:Servlet服务器端用的开发工具My..
分类:
移动开发 时间:
2015-04-10 07:14:15
阅读次数:
144
二.客户端Activity-登陆界面的实现<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"
android:layout_height="match_parent"android:paddingLeft="@dimen/ac..
分类:
移动开发 时间:
2015-04-10 07:13:04
阅读次数:
158