GL音乐播放器---代码实现_一.pdf
GL音乐播放器---代码实现_一.pdf需求一:读出存储卡中的MP3音乐并显示在列表中
1.通过MediaStore从数据库中获取所有音乐数据
2 由于MediaStore扫描到的数据存储在定义好的数据表中,我们可以使用游标直接读取里面的信息,存储到Data中进行打包。
3.定义一个List集合,将Data对象添加到List集合中
4、通过定义一个ListViewAdapter,调用setAdpter方法,将数据显示在列表中
(GL music player - code implementation_ I pdf
Requirement 1: read out MP3 music in the memory card and display it in the list
1. Get all music data from the database through mediastore
2 since the data scanned by mediastore is stored in the defined data table, we can use the cursor to directly read the information in it and store it in data for packaging.
3. Define a list set and add the data object to the list set
4. Define a listviewadapter and call setadapter method to display the data in the list)
页:
[1]