In this recipe, we are going to see how to implement and add new contacts services to our Android app.
To save contacts against a specific user, we will use the ContactApp
table, which we created earlier:
First of all, we need to define a model that we will use for various contact services. Here is our contact model:
@DynamoDBTable(tableName = Constants.CONTACT_TABLE) public static class AppContact { private String id; private String email; private String name; private String phone; private String parentId; public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } @DynamoDBAttribute(attributeName = "name") public String getName() { return name; } public void setName(String name) { this.name = name; } @DynamoDBHashKey(attributeName...