Closed TomasNilsson closed 9 years ago
Comment by tomas-nilsson Friday Feb 27, 2015 at 19:05 GMT
https://developer.spotify.com/technologies/spotify-android-sdk/android-media-notifications/
Comment by tomas-nilsson Friday Feb 27, 2015 at 19:17 GMT
Register the broadcast receiver from the Activity or Fragment, so that it can be unregistered in onDestroy().
Comment by tomas-nilsson Saturday Feb 28, 2015 at 22:40 GMT
How to send data to our server:
curl -v -H "Accept: application/json" -H "Content-type: application/json" -H 'Authorization: Token token="dsajhgsljkhvdsahlskfhbcöj"' -X POST -d ' {"song":{"name":"Firestone","artist":"Conrad, Kygo","album":"Firestone","uri":"spotify:track:2sNvitW3TxiTeC9xT9f2ZZ","image_url":"https://i.scdn.co/image/4e3a6b099bb58c6da54502a516b3aea2c0a7b2a8"}}' http://localhost:3000/api/songs
Issue by tomas-nilsson Sunday Feb 15, 2015 at 05:40 GMT Originally opened as https://github.ucsb.edu/tomas-nilsson/SpotiTraceApp/issues/2
Listen to Spotify events while running in background. Use BroadcastReceiver.
http://stackoverflow.com/questions/17236358/how-is-it-possible-to-know-whats-spotify-is-playing-from-an-external-android-ap/22195867#22195867