Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Song picker for Android

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.

like image 259
hpique Avatar asked Jul 05 '10 13:07

hpique


People also ask

How do I identify a song on Android?

On your phone, touch and hold the Home button or say "Hey Google." Ask "What's this song?" Play a song or hum, whistle, or sing the melody of a song. Hum, whistle, or sing: Google Assistant will identify potential matches for the song.

How do I use Google to identify a song?

On an Android device, say, “Hey Google,” or touch and hold the home button. On an iPhone, open the Google app and tap the microphone button. Ask, “What's this song?” If the song is playing, Google Assistant will name it and give you a YouTube link.

Which app is best for finding songs?

Shazam will identify any song in seconds. Discover artists, lyrics, videos & playlists, all for free. Over 1 billion installs and counting! Think you can Beat Shazam?

How do I Shazam a song on my Android phone?

Open the Shazam app, swipe to the Library, then tap the Settings button . Turn on “Shazam from Pop-Up,” tap Go To Settings, tap Shazam, then turn on “Allow display over other apps.” While you're in another app, tap the Pop-Up Shazam button to identify music playing in that app.


1 Answers

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

like image 80
Bob McCormick Avatar answered Oct 21 '22 15:10

Bob McCormick