Questions tagged [android-music-player]

623 questions
0
votes
1 answer

music player play mp3 twice at a time

i m playing mp3 from raw folder with the help of music player in background but music player is playing twice at time i am explaining that what i am doing ..i m recieving push notification from Server and Playing mp3 from raw using music player…
0
votes
1 answer

android broadcast receiver for default music player only

my problem is that when I try to register a receiver to the music player IntentFilter iF = new IntentFilter(); iF.addAction("com.android.music.metachanged"); iF.addAction("com.android.music.playstatechanged"); registerReceiver(mReceiver,…
iKilany
  • 71
  • 10
0
votes
1 answer

How to create the Interface used in "Google Play Music - Queue Interface"

I want to Create an interface similar to the interface we see in the currently playing song queue of "Google Play Music" or any other music player What is used over there, where we see list of songs in queue and we can slide a particular song up or…
0
votes
1 answer

Android getting a NullPointerException while accessing database

Trying to crate my own music player don't know where I got this wrong. Getting an error of NullPointerException. I even tried replacing CREATE TABLE musicList(id integer primary key, path VARCHAR, name VARCHAR);"); with CREATE TABLE IF NOT EXISTS…
0
votes
0 answers

Switching between musical app and non-musical app?

I am developing the music application . My Problem is that when i play the music from my app other music player songs are pause but when I play other music player songs when my player songs are play that time both player songs are mixed . My music…
0
votes
0 answers

IOException while playing the music using media player

I want to play a song using the Uri. I'm using media player to play the song but I'm getting IOException. try{ String url = "http://stream6.infotraxsys.com/conference/archive/5064/84727/local-6"; final MediaPlayer…
user3114723
  • 401
  • 1
  • 6
  • 17
0
votes
2 answers

How to check if new songs have been added: Android API 21 only

Reference: In PlayMusic app as soon as a song is added the library is automatically updated even when the app is running. How can the same be implemented for building a new music player app? I am using MediaStore.Audio.Media to get the initial list…
0
votes
0 answers

Android: Google play music

Regarding thumbs icon, when i play a song I press thumbs up icon nothing happens, but when I press thumbs down icon the song restarts. why this happens?
Harish S
  • 127
  • 7
0
votes
1 answer

How to pause media player when skype call comes

I've developed a music player app where i need to pause music when user gets a call through his skype app. I've tried AudioFocus and phone state listener concepts but it is not working for skype. Can somebody help me out on this. Thanks in advance.
Ramesh
  • 1,252
  • 3
  • 12
  • 30
0
votes
1 answer

how to get asset path file using android default music player as an intent?

I have a really big problem in getting address from asset folder when I'm using the default music player as an intent! This is my code: Uri path = Uri.parse("file:///android_asset/file.mp3"); String newPath = path.toString(); Intent intent = new…
Amin
  • 16
  • 3
0
votes
0 answers

Storing & sharing music history between devices

I am writing an Android app for uni (semester project). The idea is to be able to compare music "taste" between nearby devices. Long story short it's somewhat similar to Last.fm, but the idea is to be able to do similar things but for nearby…
0
votes
1 answer

Android Service stops automatically without calling stopService()

I have made an android Service to play music, when i close my application then it keeps on playing song for few minutes and then automatically stops without even calling destroy method. I am not able to understand why is it happening. Below is the…
Sumit Kumar
  • 402
  • 1
  • 6
  • 26
0
votes
1 answer

Android Music player seekto(pos) play music at wrong Position

In my application, I am streaming a Mp3 files from the server. Streaming and load working perfectly . But the problem in the seekto in the media player, like I have 2 min mp3 ,if I have loaded it and play ,guess buffering go to the 100%, after…
Mayur Raval
  • 3,250
  • 6
  • 34
  • 57
0
votes
1 answer

Grouping Identical Items in an ArrayList - MusicPlayer

I'm trying to group of several ArrayLists for a music player. The current list generates the artists for every song instead of just the one artist. Hopefully this should explain it better: My current code for one of my fragments is this: public…
Timmo
  • 2,266
  • 4
  • 34
  • 54
0
votes
0 answers

How To Stop Music player On Notification Click in android

I have started music player In background ..When Notification is generated .. I want to stop music player when User Click On Notification Or User Close Notification on Slide left or right here Is My Code where generating Notification And playing a…
user3825086
  • 111
  • 1
  • 2
  • 12