android mp3文件下载 [英] android mp3 file download
本文介绍了android mp3文件下载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好朋友
我需要从互联网上下载mp3文件,并将其存储到资产文件夹中,还必须播放到媒体播放器中。我如何做?
hello friends I need to download mp3 file from the internet and to store it into the assets folder and also it must be played into the media player. How can i do it?
推荐答案
- 下载文件,请参阅这里。
- 存储到资产文件夹:不可能,您不能修改资源或资产编译后。将文件存储到SD卡,请参阅这里。
- 使用
MediaPlayer
启动文件。
- Downloading a file, see here.
- Storeing to asset folder: not possible, you cannot modify your resources or assets after compile time. Store the file to the sdcard, see here.
- Use
MediaPlayer
to launch the file.
这篇关于android mp3文件下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文