1
我想添加或在我的应用程序中播放从音乐库中的MP3文件的android应用程序中添加音乐库...如何在我的Facebook和Twitter等
我能够在ListView获取的所有MP3文件,但我想要列出音乐库的特征,其中列出了相册,播放列表,艺术家的歌曲。
这是我从SD卡读取MP3文件代码
class Mp3Filter implements FilenameFilter {
public boolean accept(File dir, String name) {
return (name.endsWith(".mp3"));
}
@Override
protected void onListItemClick(ListView l, View v, int position, long id) {
currentPosition = position;
playSong(MEDIA_PATH + songs.get(position));
}