Skip to content

Latest commit

 

History

History
108 lines (58 loc) · 3.5 KB

README.md

File metadata and controls

108 lines (58 loc) · 3.5 KB

EXT

Expiry Date Tracker Android 🍞🍎🥛

main

About

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.

Timeline

14 Mar 2022 – 27 Mar 2022

How to use it ?

• Registering a Product Information

To save your food information, you can write name and quantity of the food. After that, set the expiration date.

Registering a product information

• Registered Product List

As below image, you can see food name, quantity and expiration date.

Registered product list

• Update and Delete

In Edit Food page, edit information and click "Update" button. Also, you can delet it by click "Delete" button.

Update and Delete

• Notification for expiry

You can select the day before expiry foods, It will show red expiration date in List Food page.

Notification for expiry

About Design

• Logo

I design this logo by canva.

LOGO

• Main Color

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/

Colors

Development

• Architecture

MVC is used in this app, And this is my directory.

directory

directory 2


• Class diagram

Class diagram


• Database

This is ER diagram of the project.

ER diagram

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].