Questions tagged [android-music-player]

623 questions
11
votes
2 answers

Android music player source code

I need native (default) android music player source code. Where can I find it?
Urban
  • 289
  • 2
  • 5
  • 7
10
votes
4 answers

How to implement Exoplayer 2.11.1 in android?

i am trying to implement exoplayer this is my exoplayer version implementation 'com.google.android.exoplayer:exoplayer:2.11.1' i am creating a music player app and i don't know anything about exoplayer i am trying to implement exoplayer from last 2…
9
votes
4 answers

Play song on default music player - android

My app show list of song from sd card. I want to be able to play the song on the default player. I've got all the data about the song: id, title, album, artist, path... Is there a way to launch the default player to play the song? What I've…
Yoav Sternberg
  • 6,421
  • 3
  • 28
  • 30
9
votes
0 answers

I am looking for an api that provides lyrics for requested song

Is there any api available that return full lyrics of song...? I go through many blogs and found that musicxmatch provide good api for lyrics. It only return 30% lyrics of full song. "lyrics_copyright":"Lyrics powered by www.musiXmatch.com. This…
Rhn Bhadani
  • 294
  • 14
  • 22
8
votes
2 answers

Android - MediaPlayer error: attachnewplayer called in state 64

I am following below post for creating simple music player, but selecting any song from list or pressing prev/next from MediaController is giving below error. I am using Oreo (Andoid 8.1.0 API 27). public void playSong() { Song playSong =…
8
votes
2 answers

How do you use MediaControllerCompat to control the current player?

My app is not the media player. I just want to be able to control the current media player using the new MediaControllerCompat class. Currently I am using MediaSessionManager but want to upgrade to the new compat classes. How do I instantiate the…
8
votes
2 answers

Not Getting Thumb with Genres - Universal Music Player

I am using UMP example provided by Google, I have not made any change in my code, even I have not tried anything out of the box, I just imported your project into my work-space and checked it on my device, and found that I am not getting Thumb with…
8
votes
1 answer

Mediaplayer stream online MP3 file

I have an Android app that streams an MP3 file and plays this file in player, but the problem is mediaPlayer.prepare(); takes a long time buffering and the app freezes so I tried to use prepareAsync();, but with this function I can't make the…
Bahaa Odeh
  • 583
  • 1
  • 7
  • 16
7
votes
3 answers

How to update metadata of audio file in Android Q media store?

Updating metadata of audio file in media store is not working in Android Q OS, it works in all other OS. I am using content provider with uri specified as MediaStore.Audio.Media.EXTERNAL_CONTENT_URI. It is working fine in all below Android Q device.…
7
votes
2 answers

How to show colored notification for media in Android Oreo?

As you already know that Android Oreo introduced the new design for media controls, rather than selecting a singular color for the notification based on the app's color, media playback notifications can instead draw colors out of the album artwork.…
7
votes
2 answers

Android music player widget

I'm working on a music player-widget (home screen widget).. It only needs to play 1 song, (Preferably with the MediaPlayer class). But I'm not sure how to implement it. I'm kind of inexperienced with Android development, just so that's…
whirlwin
  • 16,044
  • 17
  • 67
  • 98
7
votes
0 answers

SlidingUpPanelLayout doesnot work Properly with CoordinatorLayout as first child of SlidingUpPanelLayout

So when fitssystemwindow is true when it collopse it automatically increase its panel hight and when it is false it works fine . But in my project i need that true So please give me any Solution;
redblood
  • 542
  • 1
  • 4
  • 19
7
votes
4 answers

Android: How to get audio detail from audio file

I have my music app started from external applications using intent data as music file. So I have the mp3 audio URI something like this file:///storage/emulated/0/Music/Tamil/I%20(2014)/Ennodu%20Nee%20Irundhaal.mp3 how to get the audio details…
Libin
  • 16,967
  • 7
  • 61
  • 83
7
votes
1 answer

Android - How to make the phone vibrate to the music playing

I am new to Android development. I want to make an app that is essentially a music player but the phone can vibrate to the beat of the music playing. I remember the earliest Nokia phones had this feature, I want to recreate this for fun. My…
7
votes
1 answer

How to let users see & play songs on Android to which they already have access (e.g., via Google Play)?

I'm running into a roadblock integrating music into my Android app. The goal is just to let users see & play songs to which they already have access, via Google Play Music (or any other player such as Winamp, Poweramp, doubleTwist, etc.). So far,…
1
2
3
41 42