`
yehoubin
  • 浏览: 24249 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论
文章列表
String msg = "{'Province':'测试'}"; JSONObject jsonObject = new JSONObject(msg); String  QueryResult = (String) jsonObject.get("Province");
package com.ye.HttpClientTest; import android.app.Activity; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widge ...
1、标准Java接口:java.net.*提供相关的类 //定义地址 URL url = new URL("http://www.google.com"); //打开连接 HttpURLConnection http = (HttpURLConnection) url.openConnection(); 2、Apache接口:android.net.http.* //DefaultHttpClient表示默认属性 HttpClient httpClient = new DefaultHttpClient(); //HttpGet实例 HttpGet get = new Htt ...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.URI; import java.net.URISyntaxException; import org.apache.http.HttpResponse; import org.apache.http.client.ClientProtocolException; import org.apache.http.client. ...
1.在windows中打开“运行”,键入cmd进入命令行程序,找到android-sdkr的tools的目录 2.在tool目录下输入:mksdcard -l androidany 128M E:\sdcard.image 3.可在eclipse中的ADT插件直接用E:\sdcard.image的映像
Global site tag (gtag.js) - Google Analytics