Engineering ProjectsAndroid ProjectsBsc-ITDiplomaIT ProjectsMsc-IT Projects

Android Grocery Management System

Introduction

Managing groceries in a busy lifestyle can be overwhelming, making it easy to forget what’s in your pantry or what you need to buy. Introducing our Android Grocery Management System project, a one-stop solution for not just keeping tabs on your groceries but also for discovering delicious recipes tailored to what you already have.

Features

  • Inventory Management: Seamlessly keep track of the groceries you have in stock and receive notifications when you’re running low.
  • Recipe Recommendations: The app will suggest recipes based on 60% or more matching ingredients in your inventory. It even specifies the quantity needed versus what you already have.
  • User Management: The system consists of one module – the User. Registration is required for login, and the app offers a password recovery option via email.
  • Shopping List: Plan and manage your upcoming grocery shopping efficiently with the built-in shopping list feature.
  • Barcode Scanner: Update your inventory effortlessly by scanning the barcode of items. If it’s not in your current inventory, you’ll have the option to add it.
  • Community Contributions: Users can add, edit, and delete recipes, making the app a growing hub for cooking inspiration.

Technical Specifications

  • Front-end: XML
  • Back-end: MSSQL
  • Programming Language: JAVA
  • IDE: Android Studio

Advantages

  • Easy to maintain and user-friendly interface.
  • Comprehensive inventory and recipe management.
  • Enables better planning and organization for grocery shopping.

Conclusion

Our Android Grocery Management System is more than just an app; it’s a lifestyle tool designed to bring efficiency and creativity into your kitchen. Take charge of your grocery management today and turn meal planning into a delightful experience.

Sample Code

activity_main.xml

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <Button
        android:id="@+id/btnAddItem"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Add Item" />

    <ListView
        android:id="@+id/itemListView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">
    </ListView>

</LinearLayout>

MainActivity.java

import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListView;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import java.util.ArrayList;

public class MainActivity extends AppCompatActivity {

    ListView itemListView;
    Button btnAddItem;
    ArrayList<String> items;
    ArrayAdapter<String> adapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        itemListView = findViewById(R.id.itemListView);
        btnAddItem = findViewById(R.id.btnAddItem);

        items = new ArrayList<>();
        adapter = new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, items);

        itemListView.setAdapter(adapter);

        btnAddItem.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                items.add("New Item"); // Replace with the actual item
                adapter.notifyDataSetChanged();
            }
        });

        itemListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
            @Override
            public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
                Toast.makeText(MainActivity.this, "Clicked item: " + items.get(position), Toast.LENGTH_SHORT).show();
            }
        });

        itemListView.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {
            @Override
            public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {
                items.remove(position);
                adapter.notifyDataSetChanged();
                return true;
            }
        });
    }
}
Click to rate this post!
[Total: 0 Average: 0]

Download Android Grocery Management System PDF


Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button