Comments (2)
你是下载方法吗?文件有多大?
from afinal.
dHttp.download(
"http://yinyueshiting.baidu.com/data2/music/124383790/124380645248400128.mp3?xcode=2f36611e0d3ba556dd6ee9dbca2422d52f7167fd0a01384c",
DFileUtil.getExternalStorageDirectory() + "/congcongnanian.mp3",
new AjaxCallBack() {
public void onSuccess(File t) {
Toast.makeText(DHttpActivity.this,
"歌曲下载完成,路径是" + t.getAbsolutePath(),
Toast.LENGTH_SHORT).show();
};
public void onLoading(long count, long current) {
textView.setText("正在下载: "
+ (int) (((float) (current * 1.0) / count * 1.0) * 100)
+ " %");
};
public void onFailure(Throwable t, int errorNo,
String strMsg) {
t.printStackTrace();
Toast.makeText(DHttpActivity.this, "歌曲下载失败",
Toast.LENGTH_SHORT).show();
};
}.progress(true, 1000));
.progress(true, 1000));
from afinal.
Related Issues (20)
- 请问如果导入外部数据库,需要注意哪些问题?是否需要修改框架?请给我个思路!
- @ManyToOne问题
- 请问怎么实现断点续传 HOT 1
- afinalDb如果将*.db放在SDcard目录中无法更新数据库
- FinalHttp 在有wifi但是还没拨号上网时,下载文件直接回掉onSuccess,但是文件并未下载 HOT 1
- https://github.com/yangfuhai/afinal.git
- 下载文件进度条更新有问题
- 有没有gradle依赖,给android studio用 HOT 2
- 现在不会维护了吗? HOT 2
- 网络访问模块用不了
- 内存泄漏怎么办? HOT 2
- FinalHttp 下载文件问题,下载的文件必须有后缀,否则下载不了 HOT 4
- FinalBitmap.configRecycleImmediately(boolean)的参数默认值应该是false HOT 1
- FinalDb.findById 这个怎么用的?
- 在Fragment中的点击事件
- 文件上传Content-Type的 boundary 无法遵循标准写法,导致上传失败
- 哥哥数据库不能调用事物啊?效率多低啊
- 数据库不是线程安全的吧?
- 框架如何进行模糊查询? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from afinal.