views:

48

answers:

2

Is there a song picker for Android that can be invoked programatically?

I'm looking for something similar to iPhone's MPMediaPickerController, which shows a view from where the user can select songs.

+1  A: 

You can send an intent of type "ACTION_PICK" or "ACTION_GET_CONTENT". For example:

    Intent i = new Intent(Intent.ACTION_GET_CONTENT);
    i.setType("audio/*");
    Intent c = Intent.createChooser(i, "Select soundfile");
    startActivityForResult(c,1);

see here for more info:

http://developer.android.com/reference/android/content/Intent.html#ACTION_GET_CONTENT

Bob McCormick