Menu
Amazon Cognito
Developer Guide (Version Last Updated: 07/28/2016)

Setting Up the AWS Mobile SDK for Android to Work with User Pools

This section provides information about setting up the AWS Mobile SDK for Android to so you can use the Amazon Cognito Identity Provider in your app. These instructions are written for Android application development in Android Studio.

For more information about setting up the AWS Mobile SDK for Android, see Set Up the AWS Mobile SDK for Android.

Gradle Dependencies

Add the these dependencies in your app's Gradle file:

  • AWS Android Core SDK (aws-android-sdk-core-x.x.x.jar): Add the latest version of the AWS Android Core as the aws-android-sdk-core-2.2.8.jar as a dependency library to your project's build Gradle.

  • AWS Cognito Identity Provider Android SDK (aws-android-sdk-cognitoidentityprovider:2.3.8.jar): Add the latest version of the Android SDK for Cognito Identity Provider in your app's build Gradle.

Network Permissions

To allow your app to make network calls to talk to the AWS Cognito Identity Provider, you need to enable your app to perform network operations.

Include the following permissions in your app's manifest file:

Copy
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />