LoyaltyFirst Inc. is a music store that needs to develop a customer loyalty program supported by an Oracle database backend. The customer loyalty program also known as a "frequent customer" program identifies LoyaltyFirst customers as valued members through a card that accumulates loyalty points whenever they buy items from the LoyaltyFirst store.
Import the below package:
import com.android.volley.toolbox.Volley;
Login Page:
Upon accessing the login page, users are prompted to enter their username and password. If incorrect credentials are provided, a notification toast will display indicating an incorrect password.
Main Page:
The main page showcases the user's name, profile image, and current reward points. It features five buttons, each serving a specific function.
First Button - ALL TXNS
Clicking this button reveals transaction details, including Transaction Reference Number, Transaction Date, Transaction Points, and Total Points.
Second Button - TXN DETAILS
This button provides more in-depth information about a selected transaction. A spinner allows users to choose a specific transaction, displaying the transaction date, points, purchased products, quantities, and points per product.
Third Button - REDMPTN DETAILS
Clicking this button reveals prize details that users can obtain using their accumulated points. The spinner contains Prize IDs, and upon selection, information such as Prize Description, Points Required, Redemption Date, and Exchange Center is displayed.
Fourth Button - ADD % TO FAMILY
Upon clicking this button, users can select a transaction to transfer points to a family member. The top section includes a spinner with multiple transactions, displaying transaction points, family ID, and family percentage. Clicking the "ADD FAMILY POINTS" button calculates the points to be transferred, distributing them among the associated family members.