How can I control Spotify (for example) music from a different app (the one I'm making) and pull information such as playlist and track currently playing? (Android)
I want to build a prototype app to control spotify's MusicPlayer (play, pause, next, previous, etc) and also to pull the information of the current track that is playing and the playlist with all the songs that are currently in queue.
I tried using the AudioManager, but that only worked for the default android media player. (it play/pause the devices media player but it doesn't work with spotify or 3rd party apps)
Control the default music player of android or any other music player << Tried this
After that, I tried using the code on the 2nd best answer of this post, and it also only worked for the Android default music player.
I also found Spotify's Android BETA API's but they say you shouldn't use them for comercial use.
What suggestions can you guys give me?
Right now I am just trying to prototype it by creating a button to play/pause the music that is currently playing by spotify.
Testing on Android 4.4 Samsung GS5