|
|
@ -4,6 +4,7 @@ import android.os.Bundle; |
|
|
|
import android.view.View; |
|
|
|
import android.view.View; |
|
|
|
import com.arialyy.aria.core.Aria; |
|
|
|
import com.arialyy.aria.core.Aria; |
|
|
|
import com.arialyy.aria.core.inf.AbsEntity; |
|
|
|
import com.arialyy.aria.core.inf.AbsEntity; |
|
|
|
|
|
|
|
import com.arialyy.aria.util.ALog; |
|
|
|
import com.arialyy.simple.R; |
|
|
|
import com.arialyy.simple.R; |
|
|
|
import com.arialyy.simple.base.BaseActivity; |
|
|
|
import com.arialyy.simple.base.BaseActivity; |
|
|
|
import com.arialyy.simple.databinding.ActivityTestBinding; |
|
|
|
import com.arialyy.simple.databinding.ActivityTestBinding; |
|
|
@ -17,9 +18,7 @@ public class AnyRunActivity extends BaseActivity<ActivityTestBinding> { |
|
|
|
AnyRunnModule module; |
|
|
|
AnyRunnModule module; |
|
|
|
String[] urls; |
|
|
|
String[] urls; |
|
|
|
int index = 0; |
|
|
|
int index = 0; |
|
|
|
//String URL = "http://static.gaoshouyou.com/d/12/0d/7f120f50c80d2e7b8c4ba24ece4f9cdd.apk";
|
|
|
|
String URL = "http://static.gaoshouyou.com/d/12/0d/7f120f50c80d2e7b8c4ba24ece4f9cdd.apk"; |
|
|
|
String URL = |
|
|
|
|
|
|
|
"https://www.baidu.com/link?url=_LFCuTPtnzFxVJByJ504QymRywIA1Z_T5xUxe9ZLuxcGM0C_RcdpWyB1eGjbJC-e5wv5wAKM4WmLMAS5KeF6EZJHB8Va3YqZUiaErqK_pxm&wd=&eqid=e8583fe70002d126000000065a99f864"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override protected int setLayoutId() { |
|
|
|
@Override protected int setLayoutId() { |
|
|
|
return R.layout.activity_test; |
|
|
|
return R.layout.activity_test; |
|
|
@ -42,12 +41,14 @@ public class AnyRunActivity extends BaseActivity<ActivityTestBinding> { |
|
|
|
// index++;
|
|
|
|
// index++;
|
|
|
|
//}
|
|
|
|
//}
|
|
|
|
module.start(URL); |
|
|
|
module.start(URL); |
|
|
|
|
|
|
|
List<AbsEntity> list = Aria.download(this).getTotalTaskList(); |
|
|
|
|
|
|
|
ALog.d(TAG, "size ==> " + list.size()); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case R.id.stop: |
|
|
|
case R.id.stop: |
|
|
|
List<AbsEntity> list = Aria.download(this).getTotalTaskList(); |
|
|
|
//List<AbsEntity> list = Aria.download(this).getTotalTaskList();
|
|
|
|
|
|
|
|
//
|
|
|
|
//module.stop();
|
|
|
|
////module.stop();
|
|
|
|
module.stop(URL); |
|
|
|
//module.stop(URL);
|
|
|
|
|
|
|
|
|
|
|
|
break; |
|
|
|
break; |
|
|
|
case R.id.cancel: |
|
|
|
case R.id.cancel: |
|
|
|