Questions tagged [android-music-player]
623 questions
4
votes
4 answers
how to get album image using musicbrainz
I don't know whether I can ask such question here or not. My question is as below.
I am making music player on my own and I want to download album images for those songs which don't have album image. Just like what N7Music Player is doing. I did…

baldguy
- 2,090
- 1
- 16
- 25
4
votes
3 answers
How can I put a song to repeat in an android application?
I put in background of my android application a song. I don't know how much time the application is open. And I want to put this song to repeat. My code is:
MediaPlayer mySong;
mySong = MediaPlayer.create(X_0Activity.this, R.raw.tj);
…

Andreea
- 151
- 1
- 3
- 12
4
votes
1 answer
Display Album and Artist in listview with LoaderManager and CursorLoader
I have a ListFragment whose list should diplay the Albums of the device and the associated artist using MediaStore. Each row has thus two TextViews.
I'm using LoaderManager and CursorLoader to fill the list up, with a custom CursorAdapter in order…

Jecimi
- 4,113
- 7
- 31
- 40
4
votes
1 answer
how to know when audio is started playing in android
In my application I want to get start time of music player when user started and end time when it stops.I don't want to start any music player in my app. I just want to track user activity in device. So i want my application to get any notification…

thej
- 648
- 10
- 33
3
votes
0 answers
How to pause streaming when music player starts playing in android
I need to know can we pause our media player streaming when we starts playing music from music player in android.

srinivasaraghavan ramji
- 229
- 6
- 15
3
votes
1 answer
Showing a common music player in all activities
I'm working on an app for a band, which consists of several different activities such as an agenda, news section, album section et cetera.
Since it's for a band, I would like to play the band's songs in the background.
This isn't such a problem,…

Sander van't Veer
- 5,930
- 5
- 35
- 50
3
votes
1 answer
How to use MediaStore.createDeleteRequest?
I was just wondering how to use MediaStore.createDeleteRequest() to create a delete request for a music/mp3 file. Because of the new ScopedStorage I am not able to use File.delete() and I cannot find some examples on how to use…

namanop
- 33
- 6
3
votes
5 answers
How to loop an audio file in android without any delay?
I have started a android.media.MediaPlayer file with:
mp1.start()
and then trying the looping with:
setLooping(true);
but this is ending up with a delay in playing the file again.
I am trying to run an mp3 file containing a rhythm with a set…

Sid
- 1,270
- 2
- 15
- 30
3
votes
1 answer
Getting Album cover on Android 11 (R)
After updating on Android R, my app can't loading albums' art.
Code below working on Android Q
Uri uri = ContentUris.withAppendedId(MediaStore.Audio.Albums.EXTERNAL_CONTENT_URI, albumId);
Size size = new Size(700, 700);
return…

Арслан Халиков
- 73
- 7
3
votes
3 answers
How to start the default music player from my app?
I make a app with a ListView. When I tap on a ListView item, a .ogg soundfile should start playing. Not in my app, but in the default music player app of the user. How can I do this?

Kenneth Hohmann
- 31
- 1
- 2
3
votes
0 answers
Bottom Sheet Animation, Mini Music player to full screen Music player
I am struggling to add media functionality to the app. At this point I am stuck to have a professional visual transition for mini player to full screen media player.
While It is a common feature for music player app, I could not find any article or…

Eren Tüfekçi
- 2,463
- 3
- 16
- 35
3
votes
0 answers
Managing Music(Song) Queue using Android Media Framework
How to manage song queue(add song, remove song and rearrange) in offline media player application. Is it possible to manage queue using methods provided by 'MediaSessionCompat' such as
mediasession.addqueue() mediasession.addQueueItem() etc.
or we…

Akash Bisariya
- 3,855
- 2
- 30
- 42
3
votes
0 answers
Passing data between two RecyclerViews
I building a music player that has a tab layout. One of the tabs is "Genres"(Genre.java) that displays the genres of songs in RecyclerView( songs that are present on the external storage of the android phone, by querying it). I have set…

Rektirino
- 582
- 5
- 24
3
votes
1 answer
How To Launch the default Music App in android to play a particular song?
I want to play a particular song in a url through the default media player
I am able to play it using Play song on default music player - android
but it is not opening the app fully to play it
Also i am able to open the music player with following…

Bibin
- 433
- 5
- 12
3
votes
0 answers
ExoPlayer EventListener not be called in background
In my PlaybackService extends MediaBrowserServiceCompatI implement EventListener like this:
exoPlayer.addListener(new ExoPlayer.EventListener() {
@Override
public void onLoadingChanged(boolean isLoading) {
}
@Override
public void…

Cuong Nguyen
- 1,166
- 1
- 11
- 20