get Song List - Android Media

Android examples for Media:Song

Description

get Song List

Demo Code


//package com.java2s;
import android.content.Context;
import android.database.Cursor;
import android.provider.MediaStore;

public class Main {
    public static Cursor getSongList(Context context) {
        return context.getContentResolver().query(
                MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, null, null,
                null, null);// ww  w .j a  va  2s. c  o m
    }
}

Related Tutorials