cursor.getLong(cursor.getColumnIndex(MediaStore.Audio.Media.SIZE)));
? ? ?mInfo.setFilePath(cursor.getString(cursor.getColumnIndex(MediaStore.Audio.Media.DATA)));
? ? }while(cursor.moveToNext());
? ?}
? }finally{
? ?if(cursor != null){
? ? cursor.close();
? ?}
? }
?
? return musicList;
?}
?
?class MemoryInfo {
? private long fileSize = 0L;
? private String filePath = "";
? public long getFileSize() {
? ?return fileSize;
? }
? public void setFileSize(long fileSize) {
? ?this.fileSize = fileSize;
? }
? public String getFilePath() {
? ?return filePath;
? }
? public void setFilePath(String filePath) {
? ?this.filePath = filePath;
? }
?}
}