Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spotify Intent in android?

I would like to play a certain spotify playlist, anyone knows if there is any Spotify intent filter available?

thanks!

like image 367
biquillo Avatar asked Mar 09 '11 21:03

biquillo


People also ask

How does Spotify integrate with Android apps?

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.

What is the Spotify SDK?

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.

How do I get Spotify on my notification bar?

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'.

Does Spotify allow Broadcast?

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.


1 Answers

Just an ordinary intent should work.

String spotifyUri = "spotify:user:...";
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(spotifyUri));
startActivity(intent);
like image 154
Adam Nybäck Avatar answered Sep 21 '22 12:09

Adam Nybäck