// Path: src/com/samuel/downloader/utils/MD5.java
// public class MD5 {
// 
// 	public static String getMD5(String content) {
// 		try {
// 			MessageDigest digest = MessageDigest.getInstance("MD5");
// 
// 			digest.update(content.getBytes());
// 			return getHashString(digest);
// 
// 		} catch (NoSuchAlgorithmException e) {
// 			e.printStackTrace();
// 		}
// 		return null;
// 	}
// 
// 	private static String getHashString(MessageDigest digest) {
// 
// 		StringBuilder builder = new StringBuilder();
// 
// 		for (byte b : digest.digest()) {
// 			builder.append(Integer.toHexString((b >> 4) & 0Xf));
// 
// 			builder.append(Integer.toHexString(b & 0Xf));
// 
// 		}
// 
// 		return builder.toString();
// 	}
// 
// }


import java.lang.ref.SoftReference;
import java.util.HashMap;
import android.net.Uri;
import android.os.Handler;
import android.os.Message;
import android.widget.ImageView;
import com.samuel.downloader.utils.MD5;
import com.samuel.downloader.utils.SYSCS;

		if (imageCache.containsKey(url)) {
			// 获得缓存中的Uri对象数据
			SoftReference<Uri> softReference = imageCache.get(url);
			Uri drawable = softReference.get();
			if (drawable != null) {
				return drawable;
			}
		}
		final Handler handler = new Handler() {
			public void handleMessage(Message msg) {
				callback.imageLoaded((Uri) msg.obj, imageView, url);
			}
		};
		new Thread() {
			public void run() {

				Uri drawable;
				try {
					drawable = ImageLoader.getImage(url,SYSCS.LCS.IMG_ICONCACHEENTITYURL,getImageUniqueName(url), 70, 70, 0.5f);
//					drawable = ImageLoader.getDrawableFromUrl(url);
					imageCache.put(url, new SoftReference<Uri>(drawable));
					Message msg = handler.obtainMessage(0, drawable);
					handler.sendMessage(msg);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}

			protected String getImageUniqueName(String imageurl) {


// Path: src/com/samuel/downloader/utils/MD5.java
// public class MD5 {
// 
// 	public static String getMD5(String content) {
// 		try {
// 			MessageDigest digest = MessageDigest.getInstance("MD5");
// 
// 			digest.update(content.getBytes());
// 			return getHashString(digest);
// 
// 		} catch (NoSuchAlgorithmException e) {
// 			e.printStackTrace();
// 		}
// 		return null;
// 	}
// 
// 	private static String getHashString(MessageDigest digest) {
// 
// 		StringBuilder builder = new StringBuilder();
// 
// 		for (byte b : digest.digest()) {
// 			builder.append(Integer.toHexString((b >> 4) & 0Xf));
// 
// 			builder.append(Integer.toHexString(b & 0Xf));
// 
// 		}
// 
// 		return builder.toString();
// 	}
// 
// }


// Path: src/com/samuel/downloader/tools/AsyncImageLoader.java
import java.lang.ref.SoftReference;
import java.util.HashMap;
import android.net.Uri;
import android.os.Handler;
import android.os.Message;
import android.widget.ImageView;
import com.samuel.downloader.utils.MD5;
import com.samuel.downloader.utils.SYSCS;

		if (imageCache.containsKey(url)) {
			// 获得缓存中的Uri对象数据
			SoftReference<Uri> softReference = imageCache.get(url);
			Uri drawable = softReference.get();
			if (drawable != null) {
				return drawable;
			}
		}
		final Handler handler = new Handler() {
			public void handleMessage(Message msg) {
				callback.imageLoaded((Uri) msg.obj, imageView, url);
			}
		};
		new Thread() {
			public void run() {

				Uri drawable;
				try {
					drawable = ImageLoader.getImage(url,SYSCS.LCS.IMG_ICONCACHEENTITYURL,getImageUniqueName(url), 70, 70, 0.5f);
//					drawable = ImageLoader.getDrawableFromUrl(url);
					imageCache.put(url, new SoftReference<Uri>(drawable));
					Message msg = handler.obtainMessage(0, drawable);
					handler.sendMessage(msg);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}

			protected String getImageUniqueName(String imageurl) {


				return MD5.getMD5(imageurl) + ".png";
