Questions tagged [android-music-player]

623 questions
0
votes
0 answers

Android JellyBean 4.2 Source Code

Where can I find Source Code for JellyBean 4.2 Music Player Source Code? Is it available in any site? I could not find anywhere. Tried https://android.googlesource.com/platform/packages/apps/Music/+refs but haven't found 4.2 there.
user5085848
0
votes
2 answers

how to pass album art to another activity

public void accessMetaData(int songIndex) { MediaMetadataRetriever retriver = new MediaMetadataRetriever (); retriver.setDataSource(songsList.get(songIndex).get("songPath")); showMetaData(retriver); } public void…
0
votes
2 answers

Android Music Player

I am making an Music Player App.I have two different Fragments for SongsList (SongList.java) and Mediaplayer Controls(i.e Mediaplayer.java that includes play, pause buttons). Now, i want to connect my SongsList.java with Mediaplayer.java. I want to…
0
votes
2 answers

How should i reflect the incremented values of a textview ,in a custom listview,after the user restarts the application?

I am making a Music Player in Android. Data about mp3 files is accessed from mediastore.audio.media. I have added an additonal textview field and assigned it to 0,this textview displays how many times this song has been listened. so everytime the…
0
votes
0 answers

Notification Buttons Not Responding

I am have the following code that creates a notification for when the user starts to play music; private Notification buildNotification(String title, String artist, Bitmap art) { NotificationCompat.Builder notificationBuilder = new…
Alex Kombo
  • 3,256
  • 8
  • 34
  • 67
0
votes
1 answer

mp3 file not playing in Samsung Device but other Android device is ok

I used this code to play a mp3 file. Its playing in any device without Samsung... I search a lot but can't solved this problem. Please can anyone give any method to play mp3 in any device. //Not working in Samsung Device MediaPlayer…
Shohan Ahmed Sijan
  • 4,391
  • 1
  • 33
  • 39
0
votes
1 answer

[deezer][android] Track not playing when acting on PLAYING PlayerState

I'm using the android Deezer SDK 0.10.16 to play tracks, but I have a strange bug. If i add a playerStateChangeListener on the TrackPlayer and do some UI changes on the event PlayerState.PLAYING (like changing a text or showing a toast), the track…
Gyome
  • 1,333
  • 2
  • 15
  • 23
0
votes
1 answer

MediaStore.Audio.AlbumColumns.ALBUM_ART returns -1

I am trying to play songs in my app. But I am not able to get Album art from album columns. I don't want to use MediaMetadataRetriever as it eats a lot of memory when I am populating my list. Here is the code: ContentResolver musicResolver =…
Abhishek Balani
  • 3,827
  • 2
  • 24
  • 34
0
votes
2 answers

How can i get current playing song in Android programmatically

I am new to android. I am working on a music player. I can load playlist and can play a song until the app is running but how can i get my temporary playlist and current song detail when app is restarted after closing.
0
votes
1 answer

android playlist, storing mp3 file in the app or calling url

i'm actually adding a music player in my android app. It will contains 8 albums, 12songs in each one. So i'm thinking about the best way to do this. Should i store the mp3 songs in the app, which will make there lecture faster and won't need access…
adamine
  • 105
  • 2
  • 8
0
votes
1 answer

Android Media Player App services

I am developing a media player app that has a bound service to an activity.It works fine when i press the home button or the app switcher and then come back to the app from the recent app, but as i press the back button the activity also ends the…
Abad
  • 55
  • 4
0
votes
1 answer

Programmatically check which Music player is playing now

Is there a way we can check programmatically Which Music player is playing right now? like Google Play, Samsung default Music Player, any 3rd party music player Actually, we need to programmatically handle play/pause of music player. Google Play…
Kushal
  • 8,100
  • 9
  • 63
  • 82
0
votes
2 answers

Android MediaPlayer pause() stops the player and start again

I need to play audio in an Android application so I used MediaPlayer. I created 2 buttons: Play and Pause but after I paused a song and want to resume it, the song starts again instead of resuming from where I left. I wrote this code: public…
0
votes
1 answer

FATAL EXCEPTION: main java.lang.IllegalStateException When press Back

I have Runnable that runs in Thread in a MediaPlayer. When i press back I get an IllegalStateException. Here is the Runnable: mp is MediaPlayer private Runnable mUpdateTimeTask = new Runnable() { public void run() //This line is…
thefriend
  • 339
  • 1
  • 6
  • 16
0
votes
1 answer

mp3 stops playing after it worked a few times?

I have a program that plays a short, 1 sec. .mp3 sound on every buttonclick (every time a different sound). After clicking the buttons a few times, the sound suddenly stops at all for the whole program, I have another background sound on another…
Emanuel Graf
  • 756
  • 17
  • 37