- 博客(7)
- 资源 (4)
- 收藏
- 关注
转载 HttpUrlConnection访问百度,不知道为什么返回的url数据有错,loaddata不出来,之前用模拟器还没错,用真机就出不来百度了
不知道为什么返回的url数据有错,loaddata不出来,之前用模拟器还没错,用真机就出不来百度了
2016-07-21 18:35:25
494
1
转载 HttpURLConnection从网上下载图片
public class HttpThread extends Thread { private final String url; private Handler handler; public WebView webView; public ImageView imageView; public HttpThread(String url, W
2016-07-21 17:44:02
442
转载 HttpURLConnection处理post请求,返回字符串
public static String submitPostData(String url, byte[] PostData) {URL u = null;try {u = new URL(url);HttpURLConnection httpURLConnection = (HttpURLConnection) u.openConnection();httpURLCon
2016-07-18 12:01:21
4649
原创 改进后的显示照片(可以剪切,上传圆形的图片)
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == Photo.RESULT_IMAGE && data != n
2016-07-15 14:32:11
244
转载 读取手机照片或相机拍摄的照片,将其显示在imageview上的onActivityResult方法
@Overrideprotected void onActivityResult(int requestCode, int resultCode, Intent data) {super.onActivityResult(requestCode, resultCode, data);if (requestCode == Photo.RESULT_IMAGE && data != nul
2016-07-15 11:42:42
729
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人