且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

手机的音乐播放器作为闹钟

更新时间:2023-02-27 14:18:34

当然,您需要做的就是向mediaStore查询所有音乐文件,然后可以在ListView中使用生成的Cursor.

您可能还需要检查MediaStore.Audio.Media.IS_ALARM是否为true,并仅列出这些文件.

很抱歉,但我不编写即席代码,我相信这是足够的信息,可以让您继续前进.

/Darren
Sure it''s possible, all you need to do is query the mediaStore for all music files then you can use the resulting Cursor in a ListView.

You may also want to check MediaStore.Audio.Media.IS_ALARM is true and only list those files.

I''m sorry but I don''t do code adhoc, I''m sure that''s enough information to allow you move forward.

/Darren