Soundroid

Additional

Language
Java
Version
1.1 (Jan 13, 2016)
Created
Oct 31, 2015
Updated
Jan 13, 2016 (Retired)
Owner
Alladin El Akhrass (Alelak)
Contributor
Alladin El Akhrass (Alelak)
1
Activity
Badge
Generate
Download
Source code
APK file

Advertisement

Soundroid

Unofficial SoundCloud API Wrapper for Android.

Initialize

public class App extends Application {
  @Override
  public void onCreate() {
    super.onCreate();
    Soundroid.init(this, client_id);
  }
}

Example

  Call<List<Track>> call = Soundroid.getSoundcloudService().searchTracksByGenres("House", 20);
  call.enqueue(new Callback<List<Track>>() {
    @Override
    public void onResponse(Response<List<Track>> response) {
      if (response.isSuccess()) {
        tracks.addAll(response.body());
        songAdapter.notifyDataSetChanged();
      }

    }

    @Override
    public void onFailure(Throwable t) {
    }
  });

Download

Gradle:

repositories {
    maven { url "https://jitpack.io" }
}

dependencies {
    // ... other dependencies here
    compile'com.github.Alelak:Soundroid:1.1'
}