Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use SoundCloud API in Java (Android App)

I am researching for a project and was wondering if I can use SoundCloud API for making and app that streams music with SoundCloud. I could not find any official source from SoundCloud to privde a Java solution.

Any idea?

like image 505
Dan Avatar asked Sep 30 '14 02:09

Dan


People also ask

How do I use SoundCloud API on Android?

You need to get your client_id and client_secret by registering your app here. After you have obtained that, you can start using the API. Basically, most of the calls will look like this one: final SoundCloud api = new SoundCloud.

How do I use SoundCloud API?

To access the SoundCloud® API, you will first need to register your app at https://soundcloud.com/you/apps using your SoundCloud® account. When you've done that, we'll issue you with a client ID and client secret. Your client ID is required for all calls to the SoundCloud® API.

Can you play SoundCloud on Android?

The official SoundCloud Android app lets you easily access, browse and listen to the sounds shared to you while you're on the road and away from your computer. The app also includes recording functionality that lets you capture any sound around you and instantly save it in the 'Cloud.


2 Answers

Go to Soundcloud developer site

Click on My Apps.. Sign in Register your new app Once you register you will have client id and client secret. Note it

https://api.soundcloud.com/tracks/"TRACK ID"/stream?client_id="YOUR CLIENT ID"

This API url will give you the sound file you want to play. You can use this url and parse the track id to play according to your need.

You can play around the url with different stuffs like getting user details,playlists.

Refer this link for more API reference

like image 56
Dhinakaran Thennarasu Avatar answered Oct 09 '22 03:10

Dhinakaran Thennarasu


I update a library for new versions of android: https://github.com/chemalarrea/soundcloudapi-android

like image 34
chemalarrea Avatar answered Oct 09 '22 02:10

chemalarrea