Expiry Date Tracker Android πππ₯
The purpose of this project is to reduce food waste by using a application
(Expiry date tracker) that displays a list of foodstuffs you own together with their expiry dates.
14 Mar 2022 β 27 Mar 2022
To save your food information, you can write name and quantity of the food.
After that, set the expiration date.
As below image, you can see food name, quantity and expiration date.
In Edit Food page, edit information and click "Update" button. Also, you can delet it by click "Delete" button.
You can select the day before expiry foods, It will show red expiration date in List Food page.
I design this logo by canva.
I decided to use red and green, the red color naturally gives users pause due to its connotations. Green, on the other hand, symbolizes growth, safety, a success state and generally a positive outcome..
Then I used this site to find color pattern: https://pigment.shapefactory.co/
MVC is used in this app,
And this is my directory.
This is ER diagram of the project.
To store data, I used SQLite.
As Field, I prepared 4 field: "id", "food_Name", "food_quantity", "expiry_date", "user_id".
This is the database structure.
public void onCreate(SQLiteDatabase db) {
String query =
"CREATE TABLE " + TABLE_NAME + " ( " +
COLUMN_ID + " INTEGER PRIMARY KEY AUTOINCREMENT, " +
COLUMN_NAME + " TEXT, " +
COLUMN_QUANTITY + " REAL, " +
COLUMN_EXPIRY_DATE + " TEXT, user_id INTEGER); ";
db.execSQL(query);
}
you cand find more in [DatabaseHelper].