07 2012 档案
摘要:public static String getWeiboResult(String url,String httpType) { HttpClient httpClient = getNewHttpClient();// HttpGet httpGet = null;// HttpPost httpPost = null;// if(StaticData.GET.equals(httpType)){// httpGet = new HttpGet(url);// }else if(StaticData.POST.equals(httpType)){// httpPo...
阅读全文
摘要:/** * 上传图片到服务器 * @param uploadFile 要上传的文件目录 * @param actionUrl 上传的地址 * @return String */ public static HashMap<String, Object> uploadFile(String actionUrl,Drawable drawable){ Log.info(TAG, "urlPath= " + actionUrl); String end ="\r\n"; String twoHyphens ="-...
阅读全文
摘要:package com.APPShare.db;import java.util.ArrayList;import java.util.List;import com.APPShare.Bean.AppBean;import com.APPShare.Bean.FriendBean;import com.APPShare.Bean.WeiboBean;import android.content.ContentValues;import android.content.Context;import android.database.Cursor;import android.database.
阅读全文
摘要:很多时候,我们从网络上获取到的图片只是一个Url地址。我们必须采用异步加载的方法,将图片显示才来。public class AsyncImageLoader { private HashMap<String, SoftReference<Drawable>> imageCache; public AsyncImageLoader() { imageCache = new HashMap<String, SoftReference<Drawable>>(); } public Drawable...
阅读全文
摘要:List<String> list1 = new ArrayList<String>(); List<String> list2 = new ArrayList<String>(); list1.add("1"); list1.add("3"); list1.add("8"); list1.add("9"); list2.add("2"); list2.add("3"); list2.add("7"); fo
阅读全文

浙公网安备 33010602011771号