Implementing user registration services
Now that we have set up all the required prerequisites for the Android app, it's time to start writing services for the user registration.
Getting ready…
To get started with this recipe, you need to have performed the earlier recipes and should have set up the Android application development kit either on Eclipse IDE or Android Studio. For more information, take a look at the following links:
How to do it…
Let's implement user registration service:
- To get started, we need to instantiate
AmazonDynamoDBClient
using the AWS Cognito identity pool, as follows:CognitoCachingCredentialsProvider credentials = new CognitoCachingCredentialsProvider(context, Constants.ACCOUNT_ID, Constants.IDENTITY_POOL_ID,Constants.UNAUTH_ROLE_ARN, null, Regions.US_EAST_1); AmazonDynamoDBClient ddb = new AmazonDynamoDBClient(credentials); ddb...