从Android上的SD卡中选取歌曲并播放 [英] Pick songs from SD card on Android and play it

查看:490
本文介绍了从Android上的SD卡中选取歌曲并播放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在SD卡上的音乐文件夹中有歌曲。

I have songs in the Music folder on the SD card.

在我的应用中,我要从SD卡中选择歌曲从音乐文件列表中,当我选择任何歌曲时,应使用播放按钮进行播放。我该怎么做?

And in my app I want to pick a song from SD card from the list of music files, and when I choose any song, then using the Play button it should be played. How can I do that?

我已经使用内容解析器完成了操作,并获得了歌曲列表。有没有办法做到这一点? 使用意图从存储的歌曲中选择SD卡

I have already done it using content resolver and got a list of songs. Is there a way to do this using intents to pick from stored songs the SD card?

我已经通过两种方式做到了这一点。只需检查一下即可。

I have done this by both the ways. Just check it.

推荐答案

选中这些以获取想法,

http://androidgenuine.com/?tag=play-sound-android

在Android中设置铃声

这篇关于从Android上的SD卡中选取歌曲并播放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆