Questions tagged [android-music-player]
623 questions
5
votes
3 answers
Music service killed even when startForground
is it possible to prevent Service(startForground) from being killed by os? I use it to play audio but it's killed when I use another app which requires more resources(Angry birds go) for a while. In logs I see app process being killed by…

Martin Vandzura
- 3,047
- 1
- 31
- 63
5
votes
2 answers
How to pause different music players in android?
I use this code for pausing music player, it pauses default music player but doesn't work on other music players if they are installed. For example poweramp, realplayer etc
Here is code below which I use to pause music:-
AudioManager mAudioManager =…

Kamran
- 53
- 1
- 5
4
votes
2 answers
MediaPlayer plays the music files only in debug mode ( Android )
I have written an Android application ( in eclipse) that plays a music file as follows:
MediaPlayer mediaPlayer = new MediaPlayer();
try
{
mediaPlayer.setDataSource(fileName);
mediaPlayer.prepare();
…

Farid Ala
- 668
- 1
- 12
- 30
4
votes
1 answer
How to set preset eq in android?
I want to develop a preset equalizer(not graphical) and set like a classical,jazz,normal,rock(these are represented in spinner). Can anbody help me regarding this.

Ramesh Akula
- 5,720
- 4
- 43
- 67
4
votes
1 answer
Adding media item to MediaBrowserService
I'm building a music player for Android, using these two samples (Android MediaBrowserService Sample and Universal Music Player) as examples.
I noticed both load media information on start-up and add it to the Media Browser. Both have the complete…

Vin
- 309
- 1
- 11
4
votes
4 answers
Method for launching audio player on Android from web page for streaming media
To link to SHOUTcast/HTTP internet radio streams, traditionally you would link to a playlist file, such as an M3U or PLS. From there, the browser would launch the audio player registered to handle the playlist. This works great on any PC, Palm,…

Brad
- 159,648
- 54
- 349
- 530
4
votes
0 answers
Live streaming music via bluetooth Android
I want to play music from one Android device to another.When I press PLAY button in one device, song starts playing in another device.There is no music file available in receiving device.I have to transfer song from one device to another and start…

AndiM
- 2,196
- 2
- 21
- 38
4
votes
2 answers
How to use native Equalizer in the App
I am using the following code to open the Equalizer in the App.
Intent intent = new Intent( );
intent.setAction("android.media.action.DISPLAY_AUDIO_EFFECT_CONTROL_PANEL");
if (intent.resolveActivity( getActivity().getPackageManager()) != null )
{
…

Prateek
- 306
- 4
- 17
4
votes
2 answers
Android: How to control music service play/pause from bluetooth device?
Developing a music app. In my Music Service, I have written a custom broadcast receiver. It works with Intent.ACTION_HEADSET_PLUG but not with Intent.ACTION_MEDIA_BUTTON.
Please guide on how to control music controls from bluetooth devices…

WideFide
- 335
- 1
- 3
- 18
4
votes
1 answer
Universal Music Player with own JSON and Youtube Audio Library
As mentioned in this line:
private static final String CATALOG_URL =
"http://storage.googleapis.com/automotive-media/music.json";
This file contains a list of tracks that are hosted by Google online.
So, I guess the complete URL of…

Sophie
- 2,594
- 10
- 41
- 75
4
votes
1 answer
Set my app as default music player in android programatically
When we click a mp3 file we get the popup window showing default apps which can play that file.
How can I add my app to that list?
For developing the app I referred a tutorial on tuts+.
I am using a service called player service referring to a…

1234567
- 2,226
- 4
- 24
- 69
4
votes
2 answers
Access Music files from library programmatically (Android)
I want to access the music library in Android phone (not sdcard) & show it in list. I want to get all info related to each file like duration, artist etc. How would I do that programmatically?

Shaheera
- 307
- 1
- 15
4
votes
1 answer
How to make 10 band equalizer on Android player if default is 5 band?
I am trying to make an android player and a problem occurred while making the equalizer. There is limit of equalizer bands, for example Nexus 5 has 5 band equalizer by default. Several players (such as Poweramp) somehow managed to get 10 band…

Petar Stankovic
- 43
- 3
4
votes
1 answer
Android MediaController Play/Pause button and Seekbar doesn't Refresh
I am using MediaController.MediaPlayerControl in order to display a MediaController at the bottom of my Custom View but I can't get it to work properly. When I play music for first time then there should be pause button visible but instead there is…

user221458
- 716
- 2
- 7
- 17
4
votes
2 answers
Launching Media Player using Intent
I'm developing my first Android app . It's voice recording app. I'm recording voice with MediaRecord like this :
mRecorder = new MediaRecorder();
mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
…

Eray
- 7,038
- 16
- 70
- 120