I have Spotify installed on my phone.
From within my app I can play Spotify songs with an intent.
But when I do this Spotify-app appears above my app. I don't want that. Spotify-app must remain invisible. I just want to hear (and later stop) the song.
In what way is this possible. Can anyone help me?
From within my app I can play Spotify songs with an intent.
B4X:
Dim i As Intent
i.Initialize(i.ACTION_VIEW, SpotifySong)
i.SetComponent("com.spotify.mobile.android.ui")
StartActivity(i)
But when I do this Spotify-app appears above my app. I don't want that. Spotify-app must remain invisible. I just want to hear (and later stop) the song.
In what way is this possible. Can anyone help me?