Android SDK

8 posts

Android SDKReleases

Android SDK v3.1.0

Version 3.1.0 of the Rdio Android SDK includes the following improvements:

  • You can now control the queue and receive to queue events
  • Ability to pass custom query string parameters when using OAuth2WebViewActivity
  • Most android.util.Log tags are now prefixed with RdioSDK for easier filtering
  • Ability to explicitly set the the OAuth 2.0 scope
  • Ability to play ad-supported stations (partners only, email partnerships@rd.io if you'd like to be a partner)
  • Improved playback performance

Download the latest release, checkout the getting started guide, and let us know what you think.

Android SDKReleases

Android SDK v3.0.3

Version v3.0.3 of the Rdio Android SDK includes the following improvements:

  • Fixes an issue when logging into Rdio with Facebook
  • Fixes NullPointerException issue when when the Rdio API is unavailable
  • Include correct error string in RdioApiResponse
  • RdioApiResponse now has getStatusCode()

Download the latest release, checkout the getting started guide, and let us know what you think.

∞  June 19, 2015 — 4:34PM

Android SDKReleases

Android SDK v3.0.2

As part of our OAuth 2.0 launch, we’ve released v3.0.2 of the Android SDK. This release has feature parity with the previous Android SDK and get’s ready for new features. See our OAuth 2.0 migration guide for details on how to upgrade your application.

The previous version of the SDK relied on Android's built-in MediaPlayer. While easy to use, it did not provide the stability and control that we needed. The new SDK introduces a brand new audio pipeline. You’ll notice that playback starts sooner and is far more stable.

This provides us a solid base to provide a full-featured SDK for developers. Future releases will support richer queue functionality and will be released in the near future.

Version 3.0.2 of the Rdio Android SDK includes the following improvements:

  • New implementation
  • Allows playback to start mid-track
  • Fixes existing seeking and track duration bugs
  • Handles playing non-track source types
  • Support for OAuth 2.0

Download the latest release, checkout the getting started guide, and let us know what you think.

∞  June 08, 2015 — 2:18PM

Android SDKReleases

Android SDK v2.0.2

Version 2.0.2 of the Rdio Android SDK includes the following improvement:

  • Removes cookies after login so users can authenticate with a different Rdio account

Download the latest release, checkout the getting started guide, and let us know what you think.

Android SDKReleases

Android SDK v2.0.1

Version 2.0.1 of the Rdio Android SDK includes the following improvement:

  • Fixed issue where music ceases to play after receiving a 404 when retrieving a track

Download the latest release, checkout the getting started guide, and let us know what you think.

Android SDKReleases

Android SDK v2.0.0

Rdio Android SDK v2.0.0 has been released. It contains the following improvements:

  • Login flow that doesn’t depend on the official app
  • Developers must now explicitly initialize playback
  • When on WiFi, use high-quality streams
  • Rdio#cleanup() now works (#54)
  • Unicode handling for API requests

Upgrade Notes

Improved login flow

Since the Android SDK no longer requires the official Rdio app to function, you’ll need to authorize users with the included OAuth1WebViewActivity. The activity results will include an access token and secret or an error code and description. This access token and secret should then be passed to Rdio#setTokenAndSecret()

Previously the SDK required the user to also have the Rdio for Android installed to authorize your application.

Faster initialization

We’ve made playback initialization an explicit step instead of automatically making an API request at launch to retrieve a playback token. Previously you needed to wait for RdioListener#onRdioReady() before using the SDK. This callback has been removed, you can now start using the SDK right away.

When you know you’ll want the user to listen to music, you’ll need to call Rdio#prepareForPlayback() and then wait for RdioListener#onRdioReadyForPlayback(). Note that if you prepare for playback before setting the access token and secret, you’ll only be able to playback 30-second samples. Once you’ve set the access token, you can call Rdio#prepareForPlayback() again to receive a new playback token.

The reason for this change is that some developers do not use the playback feature and the API request was a waste of resources. It also reduces the time to initialize the SDK.

High Quality Streams

Before this release, the SDK only used low-quality streams. If your application has the ACCESS_NETWORK_STATE permission, the SDK will detect if the user is connected to the Internet via WiFi and use high quality streams. Note that the SDK does not require this permission, it will detect if your application has it and then take advantage of it. If your application doesn’t have the permission, the SDK will default to low quality streams.

Download the latest release, checkout the getting started guide, and let us know what you think.

Android SDKReleases

Android SDK v1.1.0

Rdio Android SDK v1.1.0 has been released. It contains the following improvements:

  • Bug in playback token request that resulted in 30-second samples (#16)

Please download the latest version and email us if you run into any issues.

Android SDKiOS SDKWeb Playback APIWeb Service API

Public Issue Tracker

We have started a public issue tracker for the Rdio API. The goal of the issue tracker is to provide greater transparency for Rdio API developers. Specifically it is meant to provide:

  • A place to submit bugs
  • A place to submit feature requests
  • A list of known issues

Checkout the issue tracker and let us know what you think by sending us an email.