Android Question How to stop playing Spotify?

andredamen

Active Member
Licensed User
Longtime User
You can play songsin your own app from Spotify with the intent:

B4X:
    Dim i As Intent
    i.Initialize(i.ACTION_VIEW, SpotifySong)
    i.SetComponent("com.spotify.mobile.android.ui")
    StartActivity(i)

But how to STOP playing this Spotify song? Does anyone know?
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

andredamen

Active Member
Licensed User
Longtime User
There is indeed a Spotify Android SDK in Beta form. Too complicated for me as an amateur programmer (hobbyist). I have no knowledge of Java or converting aar files to use them in B4A.
I had pinned my hopes on expert users of B4A who had perhaps developed a library for the Spotify connection. If I read Spotify for Developers correctly, then what I'm asking (opening a Spotify song via your own app with Spotify playing in the background with your own app in the foreground) is indeed possible. Too difficult for me to achieve this via this tutorial.
For now, my hopes are pinned on the more experienced users of B4A. Who knows, maybe they can help me in the near future and thus also serve other B4A developers well.
 
Upvote 0

Similar Threads

Top