Prepare the Sample Application

The SDK for Android Applications is available as an Android Archive Library (AAR) file, which you must load as a library in the Android application. After you download the SDK for Android Applications from the Oracle Identity Cloud Service console, you can set up your Android development environment.

Load the SDK for Android Applications in the Sample Mobile Application

You can access the Downloads page from the Oracle Identity Cloud Service console. From this page, you can download the SDK for Android Applications.

  1. In the Oracle Identity Cloud Service console, expand the Navigation Drawer, click Settings, and then click Downloads. The list of files to download appears.
  2. Click Download for the SDK for Android Applications, and save the zip file on your local computer.
  3. Open the SDK for Android Applications.zip file, locate the IDCS-SDK-for-Android.aar file, and then extract this file into the library folder for the sample application (for example, [SAMPLE_APP_FOLDER]\app\libs).

    The source code structure of the sample application must be similar to the following example. The names of the zip files may vary.

    [SAMPLE_APP_FOLDER]\
      ...
      app\
        build\
        libs\
          IDCS-SDK-for-Android.aar
        src\
      gradle\

Set up the Development Environment with the Sample Application

After you download the SDK for Android Applications, you can set up your development environment by using Android Studio.

  1. Start Android Studio.
  2. To ensure that your Android Studio installation has the Android API Level 24 installed, click Configure, and then click SDK Manager.
    The Default Settings window appears. The SDK Platforms tab lists the Android API Levels available for installation. The SDK Tools tab shows the version of the SDK Build-Tools installed.
  3. Click Open an existing Android Studio project, select the sample application folder, and then click OK.