I'd like to get information about the songs on Android, but I don't know how to get information about the songs being played. Please tell me what code to use.
android
I don't think it's possible from the application to get the music information playing any player.
in "specific Player"
Google Play Music (com.android.music) can be found by filtering the following actions on Broadcast:
*"com.android.music.metachanged"
* "com.android.music.queuechanged",
* "com.android.music.playbackcomplete"
* "com.android.music.playstatechanged"
GetStringExtra provides the following information:
*"id" - Integer:the database row ID
* "artist" - String: the name of the artist
* "album" - String: the name of the album
* "track" - String: the name of the track
* The int has an action that is one of
© 2024 OneMinuteCode. All rights reserved.