
Add a user authentication mechanism through Amazon Cognito.Add a GraphQL API that’s backed by AWS AppSync.In this post, we go through detailed step-by-step instructions to build this Android app. You also want to enable user authentication so that each user can add their own pet. You want to focus on building an Android app. You want to set up APIs to enable listing, creating, and storing pet data-but you don’t want to manage the backend infrastructure. Suppose that you want to build a native Android app to display a list of pets. This walkthrough is part 1 of a two-part series on how to build an AWS cloud-enabled Android mobile app with the AWS Amplify toolchain. Instead, please see the new Amplify Android Getting Started tutorial to learn how to build Android mobile applications using AWS Amplify. You can add the Picasso library by adding the following dependency to the adle file.This post has been deprecated. Visit here to learn more about how to use Picasso library in Android. Here in this example, I am talking about Picasso image loading library. We will add Picasso library for downloading and caching of images. They serves a great deal of purpose and saves lot of time.


Adding Picasso Image Downloading LibraryĪndroid open source developer community brings some of the interesting libraries that can be integrated easily to Android applications. Notice that we have also declared all the activities used in the application. Add the following line to AndroidManifest.xml file. As we need to download the data form server, we need to add the INTERNET permission. You might be aware that, Android application must declare all the permissions that are required for application. For the sake of simplicity, we are adding an ImageView and a TextView. This layout will be used by custom grid adapter for laying out individual grid item. Let us now add another file named grid_item_layout.xml to res/layout folder. The progress bar will be displayed when the data is being downloaded. We have declared an GridView and a ProgressBar in activity layout. The above layout is pretty straight forward. For this example, I prefer to use Android Studio. Create a new layout file to your project res/layout folder and name it as activity_grid_view.xml.


Instead of using static images to display the grid items, lets make this example more realistic by downloading the data in realtime from server and render the grid items. This example is an improved version of my previous example Android GridView Example.
