Android fake store demo app built with the API available at https://fakestoreapi.com/docs.
When testing the application, use the following credentials:
• Username: mor_2314
• Password: 83r5^_
The Android application uses the following API functionalities:
• User login
• Get all products
• Get one product
• Add new product (create updated cart)
• Get cart items
• Download image (product photo)
The application should work fine on most Android devices from API level 21 (Android 5.0) onwards. Targeted display: 1080x1920, 420dpi. Please note that if your resolution and font settings are very different compared to FHD, this might change the way in which the app is displayed.
Screens/Activities:
- Login screen
Use the credentials above to login. If you provide invalid credentials, you'll receive an "invalid credentials" message error. The password is sent in plain-text through the API, since Fake Store API doesn't support any cryptography. - Main screen
On this page, the list of products is displayed. It includes the product photo, category, rating and price for the first 10 products. Clicking a product will open the product page, while clicking the cart photo will open the cart for the current user. - Cart screen
On this page, the products found in the current cart for the logged in user (user with ID #2 hardcoded, because the API doesn't provide user ID after login) are displayed. The total price is computed. Clicking on the "Order" button will send the user back to the home screen, but without sending an actual "order" API request (Fake Store API doesn't provide such a command). - Product screen
This page provides the full details of the selected product, including the product photo, title (product name), description, category, rating and # of reviews. When the quantity is changed, the total price is updated. Clicking "Add to cart" will create a new cart based on the existing one and sent it through the API. However, this won't be reflected in the cart, since the API is not persistent.