Questions tagged [android-music-player]
623 questions
3
votes
3 answers
How to Play Music in Android Studio?
Okay, So I am Making an app called Fall Down 4 in Android Studio. Now, I need to know if there is any way I can play music once I run my app.
I know how to start a music once you click on a certain button but that's not what I want. What i want to…

J patel
- 165
- 3
- 4
- 10
3
votes
0 answers
Lock Screen Visualizer - Cyanogenmod
I am developing a music player app and have noticed specifically on Cyanogemod ROMS that there is a lock screen music visualizer (there are probably other ROMS with something similar that I haven't seen). My app uses a background service to keep…

Mark
- 9,604
- 5
- 36
- 64
3
votes
5 answers
My App is not working in API 23
The music app which is , it works on API 16 , but not in API 23.
The listview is not loaded with songs, it shows empty when checked in API23, working fine in API16.
In API22 also…

Selva
- 1,310
- 2
- 14
- 31
3
votes
1 answer
Universal Music Player says Error Loading Media
I am using Universal Music Player (UMP) sample code provided by Google.
Here, I would like to customize a thing as per my requirement, still UMP works in below process:
Screen 1: Genres (Songs by genre)
Screen 2: List of Genres
Screen 3: List of…

Sophie
- 2,594
- 10
- 41
- 75
3
votes
1 answer
Updating seekbar from Service
I am building a music player and i need to add a seekbar for the songs. I have checked online but most of the results are for a media player that is in an activity as opposed to a service. I am new to using the media player so any detailed results…

Alex Kombo
- 3,256
- 8
- 34
- 67
3
votes
1 answer
Play a radio station in Android Application
How can I play a radio station using Media Player in Android?
I am using an iRadeo station that has two songs with the
url:"https://www.iradeo.com/station/133063"
but when I try to do
Uri myUri =…

Soud Kyl
- 55
- 5
3
votes
0 answers
Setting two artists for a song in android
How to set two artists for one song in android so that it appears as single artist in playmusic.
I've tried
t.setField(FieldKey.ARTIST,"ram/Rakul");
t.setField(FieldKey.ALBUM_ARTIST,"ram;Rakul");
t.setField(FieldKey.ALBUM_ARTIST,"ram&Rakul");
I…

Ravi kumar
- 61
- 5
3
votes
2 answers
How to obtain the folder name of a music file (or any file) dynamically
I have been searching on how to get the name of a folder (in internal sd card) containing my music files from the device but all the examples I saw was about how to get the file name not the folder. How can I write a code which is actually dynamic,…

Alireza
- 71
- 1
- 8
3
votes
2 answers
Getting Album Art for music player Android
I want to know the code (Function) how to return an image of the albumart in a musicplayer. Can you explain what parameters I should pass? I can pass the file path to the function.
imported required libraries
public class SongsManager {
//…

Teja Konjeti
- 343
- 2
- 15
3
votes
1 answer
Pause/Stop/Mute music at service interupts
I basically have an audio application that will be playing some music. I want to be able to pause/stop/mute the music when there is an interrupt.
These interrupts include: GPS directions, Phone Call, GPS, etc. (if there are more audio interupts,…

sv94
- 131
- 2
- 15
3
votes
1 answer
Google Play Music no longer supports media_play_from_search
Google Play Music no longer appears in the "Complete action using" list for the INTENT_ACTION_MEDIA_PLAY_FROM_SEARCH intent. I know this used to work on 2.3 and Pandora and Spotify still show up. Has anyone faced this issue before?
Intent intent =…

smith324
- 13,020
- 9
- 37
- 58
3
votes
1 answer
Android: Trying to launch the music player from my app with an input playlist
I'm trying to start the stock music player from my app. I did see a few stackoverflow questions like this one - Intent to open android playlist activity - but that didn't get me anywhere. This is the code I am trying to use right now -
Intent…

whathojeeves
- 33
- 4
3
votes
2 answers
how to play multiple sounds simultaneously in android
I tried the following code and the 3 notes were playing simultaneously. That method is triggered by a click on a button. However on the next click event it plays only one note and the app crashes. I want to play 3 different notes every time i click…

Leon Nicetomeetya
- 103
- 1
- 9
3
votes
8 answers
Service with MediaPlayer doesn't stop when closing app - Android
I'm developing a simple game where 3 activities (menu, settings and ranking list) needs one background music that should play smoothly in the background even if for example user leaves menu and goes into settings and then back.
For that I created…

Soriyyx
- 873
- 3
- 15
- 31
3
votes
6 answers
How to detect song playing is completed?
I am playing a song with the help of Media Player using following code,
mediaPlayer = new MediaPlayer();
mediaPlayer.setDataSource( "sound_file_filepath" );
mediaPlayer.prepareAsync();
mediaPlayer.setOnPreparedListener(new OnPreparedListener()
{
…

Raynold
- 443
- 2
- 9
- 28