This is a template for a mobile app I created for a transportation company, using Android Studio.
The company collects products from a client and stores them for a certain period of time until the client wants them back. They keep books containing the info of each client(name, address, city, phone number, pick up date), the product types, the quantity of each product and the fees charged. The app is meant to replace the books, so the user enters all the info and then the app stores them to a database. I created a rest API that connects to a MongoDB. The android app connects to the API and the API handles the database.
The user upon opening the app has two options, to make a new entry or search for an old one.
After selecting new entry, a screen appears prompting the user to enter a customers info and the quantity and price of the products.
If date is not filled, current date and time will be used. User can't add info to the database if one or more personal info fields are empty and if not at least one product is filled.
After pressing add, there is a confirmation screen where the user can also send a confirmation sms to the customer.
Upon successfully saving data to the database a Toast is displayed and the user is moved back to the main screen.
The customer was given serial number 2, so let's search for an entry with that serial number.
If the entry exists, a dialog with the customer's info will be displayed.
The user can also share the customer's info.
A customer's entry can't be deleted but there is the option to clear the database and delete all entries.
If the deletion is successful a Toast will be displayed.
If we search for a customer with serial number 2, we will see that such entry no longer exists.