Android网络(4):HttpClient必经之路----使用线程安全的单例模式HttpClient,及HttpClient和Application的融合 Android
zz:http://blog.csdn.net/yanzi1225627/article/details/24937439上文简单介绍了HttpClient和Tomcat服务器的交互,主角是HttpClient,然后它跟服务器交互有两种方式即get
标签: android
BroadcastReceiver广播 Android
BroadcastReceiver广播广播类型:普通、有序 简单的举个例子,大体用法思路已经很清楚了,剩下的有时间在附上实现:注册--->触发--->响应public
标签: android
Android 巧用Itent.ACTION_PICK和Intent.ACTION_GET_CONTENT Android
//选择图片 requestCode 返回的标识 Intent innerIntent = new Intent(Intent.ACTION_GET_CONTENT); //android.intent.action.GET_CONTENT...
标签: android
Android中logcat的介绍和使用 Android
logcat日志的等级划分 等级从低到高排列verbose :冗余,最低等级。 黑色debug:调试信息 蓝色info: 普通信息 绿色warning :警告
标签: android
context和getApplicationContext()介绍 Android
在android中常常会遇到与context有关的内容,大多都是作为参数在传递,但是它的作用究竟是什么呢先说它的用法,举个例子在语句 AlertDialog.Builder build
标签: android
Android SDK Platforms Android
Android SDK 版本
API级别
版本
英文名称
中文名称
发布年份
1
1.0
2008
2
1.1
2009
3
1.5
Cupcake
纸杯蛋糕
2009
4
1.6
Do
标签: android
android环境搭建 Android
简单的记录一下自己搭建android环境的过程,以供各位同仁参考:1. 安装java jdk,按照网上教程(java1.8_40版本)。2. 下载eclipse,下载(
标签: android
json与gson互转 Android
json与gson互转导入gson.jarbean:public class Person { private String name; private int age; /** * @return the name */ public String getName() {
标签: android
Android文件图片上传的详细讲解(一)HTTP multipart/form-data 上传报文格式实现手机端上传GOOD Android
转自:http://topmanopensource.iteye.com/blog/1605238 做一个文件上传到服务器端可能需要以下几点知识,如下:1.HTTP multipart/form-data 上传报文格式实现
标签: android
android 性能优化 Android
1.Java内存控制 对于字符串操作而言如果需要连加这样的操作建议使用StringBuilder,经过调试不难发现如果你的字符串每次连加,使用String需要的内存开
标签: android