I would like to play a certain spotify playlist, anyone knows if there is any Spotify intent filter available?
thanks!
Download and install the Spotify Android SDK. Also, go to google play store and download the Spotify app. Install it and log in with the email and password or register. Inside your android app code, go to the service you want to integrate with Spotify, if you do not have one create a service or activity.
The Spotify SDK allows your application to interact with the Spotify app running in the background as a service. The capabilities of this API include getting metadata for the currently playing track and context, issuing basic playback commands and initiating playback of tracks.
If you go to android settings/applications/spotify, is the "show notifications" box checked? If you open your phone settings then navigate to apps and open Spotify you should have a menu for 'notifications'. Open this and ensure that all are disabled except 'peeking'.
You can do this by clicking on Settings → Device Broadcast Status on the Spotify app on your Android so you can use this feature on your phone as well.
Just an ordinary intent should work.
String spotifyUri = "spotify:user:...";
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(spotifyUri));
startActivity(intent);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With