Questions tagged [android-music-player]

623 questions
0
votes
1 answer

play radiostream in the background

Hello i'm building a app for a radio station. Now i can the music in the app but when i go to the homescreen the audio stops. Does someone have some tips suggestions on how to use my code to keep on the audio playing in the background? My…
0
votes
0 answers

Source code for disc view in music player in android 2.2

Hey I want to make my own music player and I want to show the list of songs in disc view as shown here which is available in all android phone's music player. So where can I found code for that. I heard that all this source code is freely available.…
baldguy
  • 2,090
  • 1
  • 16
  • 25
0
votes
1 answer

No idea on how to update widget from service

I've been trying to make a widget to my music app. The app has a service that handles the mediaplayer so that i can "minimize" the app and yet continue listening to music. I know that i need to update the widget from the service, but all the…
0
votes
0 answers

how to stop musicplayer application from my application

I am trying to make an application that stops the music player when the button is pressed? everything works fine but i am not able to close the music player application? any suggestion or help....
Jpm
  • 166
  • 4
  • 18
0
votes
0 answers

Android refresh IMediaPlaybackService current song content

I make a simple example to let you understand what I need to do: 1) I open an unknown song (a song where I deleted all ID3 Tags) so IMediaPlaybackService don't have an user-friendly information 2) I update song information adding ID3 file 3) Current…
StErMi
  • 5,389
  • 5
  • 48
  • 71
0
votes
2 answers

Controlling android music player by my own application

I want to write some application to control android music player :) For example when i shake phone -> player should change music next one. Is it possible without rooting my phone?
PatLas
  • 179
  • 1
  • 5
  • 16
0
votes
1 answer

Which Audio Format would be best for me to store audio files on Android Smartphone?

I am developing an Android based application which plays Audio Files from an Album. The audio files in the album are all in MP3 Format with Audio BitRate 320 KBPS. Since there are 18 songs in the album and the average song size is 6MB, my Android…
Muhammad Shahab
  • 4,187
  • 4
  • 34
  • 44
0
votes
2 answers

How to provide an option, for the user, to select music with in android application?

I am new to Android, I need a path to fulfill my requirements. In my application I need to provide an option for the user to select their playlist from the application. Is this possible?, please confirm. I tried this with the following sample code,…
Sekhar Bhetalam
  • 4,501
  • 6
  • 33
  • 52
0
votes
1 answer

Getting the details of the current song playing in the media player in Android

I'm currently using a method similar to the one below to retrieve the information, however I am not sure how I can obtain the genre. Does anyone know what the string extra is called for genre or if there is an extra at all? Thanks. Track info of…
0
votes
1 answer

launch emulator with newly built source Music application

I have built ICS source using "make -j4", then I have modified the Music application in the source code ("packages/apps/Music") & built it successfully using "make Music". It generates "out/target/product/generic/system/app/Music.apk". Now I want to…
AndroidGuy
  • 1,270
  • 4
  • 15
  • 32
0
votes
1 answer

How to find out if a song is playing or not?

I am developing an application. Related to my application, I want to know if any audio song is playing or not in the backgroud through any other music player apps or the default musicplayer come with mobile. If anyone knows the solution please help…
kiran
  • 3,244
  • 7
  • 34
  • 57
0
votes
2 answers

MusicPlayer Pause and Start from it the start

I am developing music application . I want to pause the player and when I go for resume it will start it from the that point. Music.java public class Music { private static MediaPlayer mp = null; public static void play(Context context,int…
NovusMobile
  • 1,813
  • 2
  • 21
  • 48
0
votes
2 answers

android music player with service

i am looking for a basic implementation of an android music player for learning purpose. All i want is a music player with service and oncompletionlistener that would move to the next track and a notification. but i havent yet been able to find…
-1
votes
1 answer

Hi, I'm creating a music player I have this issue

It says in logcat, NotificationService system_server E Package enqueue rate is 5.001587. Shedding 0|wills.music|1|null|10477. package=wills.music could this also cause to crash when playing music or random, it crashes…
-1
votes
1 answer

i am getting an error in this code but i dis find it

val selection = MediaStore.Audio.Media.IS_MUSIC + "!=0" val projection = arrayOf(MediaStore.Audio.Media._ID,MediaStore.Audio.Media.TITLE,MediaStore.Audio.Media.ALBUM, MediaStore.Audio.Media.ARTIST, …