@ -7,4 +7,10 @@ public class AMTarget {
Context context;
OnSchedulerListener listener;
DownloadEntity entity;
//public DownloadManager load(DownloadEntity entity){
// this.entity = entity;
//}
}
@ -42,9 +42,10 @@ public class Aria {
mDownloadManager = DownloadManager.init(context);
//public static AriaManager whit(Context context) {
public static AMTarget whit(Context context) {
// return AriaManager.getInstance().get(context);
AMTarget target = AriaManager.getInstance(context).get(context);
return target;
/**
* 开始下载
@ -33,6 +33,10 @@ import java.util.Map;
return INSTANCE;
public AMTarget get(Context context){
return getTarget(context);
private void putTarget(Context context) {
String clsName = context.getClass().getName();
AMTarget target = mTargets.get(clsName);