[go: up one dir, main page]

0% found this document useful (0 votes)
665 views49 pages

Fab - Care Report

The document describes a mobile application called FabCare that provides laundry services. The app allows users to order laundry services like washing, ironing, and dry cleaning through their mobile phones. Users can select the type of clothes and quantity, add their delivery location, make payments online, and track the status of their orders. The app aims to reduce the burden of laundry tasks on users and make the laundry process more convenient and efficient through digitization. It provides doorstep delivery and pickup of clothes. The app's features include login, home, menu, order placement, payment, location adding, and status tracking functionalities.

Uploaded by

Rajat Kesharwani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
665 views49 pages

Fab - Care Report

The document describes a mobile application called FabCare that provides laundry services. The app allows users to order laundry services like washing, ironing, and dry cleaning through their mobile phones. Users can select the type of clothes and quantity, add their delivery location, make payments online, and track the status of their orders. The app aims to reduce the burden of laundry tasks on users and make the laundry process more convenient and efficient through digitization. It provides doorstep delivery and pickup of clothes. The app's features include login, home, menu, order placement, payment, location adding, and status tracking functionalities.

Uploaded by

Rajat Kesharwani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 49

ABSTRACT

Our FabCare Application is basically Laundry Application with the current rapid
development of technology, many services need redesigning in order to keep up with
customer demands. Therefore, organizations nowadays are looking into redesigning services
and business processes in order to maintain their competitiveness and success. With the
recent advancement evolved in smartphone proficiency, and their growing insight rate among
individuals, organizations intend to take advantage of these devices by designing mobile
applications to help evolve their business. The start-up of the laundry business is one of the
province which has great opportunity for further development. Turning the regular routine of
laundry into a service accessible through a mobile application will contribute to reducing the
burden of laundry tasks on individuals will reduce the manual effort and one can invest their
laundry time to do their essential work.

iii
TABLE OF CONTENTS

Acknowledgement i
Declaration ii
Abstract iii
Table of Contents iv
List of Figures v
List of Tables v
Chapter 1 INTRODUCTION
1.1 Problem Statement/ Aim 1
1.2 Scope 2
1.3 Project Description 2
Chapter 2 HARDWARE AND SOFTWARE REQUIREMENTS
2.1 Hardware Requirements 5
2.2 Software Requirements 5
Chapter 3 DESIGN
3.1 System Design 6
3.2 User Interface 7
3.3 Process Flow 9
Chapter 4 IMPLEMENATION
4.1 Code Snippets 11
Chapter 5 RESULT AND DISCUSSION
5.1 Screen Shots 37
Chapter 6 CONCLUSION AND FUTURE ENHANCEMENTS 41

BIBLIOGRAPHY 42

iv
List of Figures

Figure Title Page no.


no.
3.1 User Interfaces of FabCare Login application 7
3.2 UI of Home Page of Application 8
3.3 UI of Adding Delivery Location 8
3.4 UI of Tracking of Order 9
3.5 Login FlowChart 9
3.6 Payment FlowChart 10
3.7 Service FlowChart 10
5.1 Login and SignUp Page 37
5.2 Home Page 38
5.3 Menu Page 38
5.4 Selecting Clothes and their Units Page 39
5.5 Adding User Location to Delivery Page 39
5.6 Payment Page 40

List of Tables

Table
Title Page no.
no.
2.1 Software Requirements 5
2.2 Hardware Requirements 5

v
2021-22 FAB CARE

CHAPTER 1
INTRODUCTION
Android is open source code mobile phone operating system that comes out by
Google in November 2007. Its appearance has broken the traditional closed mobile phone
operating system. Anyone can modify the mobile phone operating system as well as
function according to personal preference, which is also the most attractive merit of
Android.

Fab care system with mobile application is basically a Laundromat. According to today’s
rapid demand, we are all surrounded by numerous on demand applications the Fab Care is
one of them. This application is necessary part of the busy schedule of life .There are many
laundry applications available in the market like dry wash, dry clean but these applications
provides the laundry services only for limited places. Currently, laundry stores use a
manual system for the management and maintenance of records partially aided by the file-
based approach. The existing system requires a lot of paper work at different levels within
the business. Records are often misplaced, hard to retrieve, update and generally maintain.
Information may be redundant as each department may have to have a copy of the same
recordsfiled separately.

Fab Care application will not only work on any specific place it will work for all the places
and it is very easy to maintain records. People don’t want to invest their valuable time in
day-to-day household chores such as washing the clothes because they have other important
business moreover, so the demand on laundry app(Fab Care)has been introduced for saving
time. Multi-Store Fab Care with mobile Application consists of various options of washing
sections like wash , dry wash , clean wash , stain removal and so on. we provide a great
opportunity for the customers as it is android application so all the work is computerized.

1.1 Problem Statement/Aim


The android platform provides resources for handling Fab Care, which helps in creating the
interface between developers and users. The main motive of our project is to provide more
comfort to our customers with contactless delivery. The special feature of our project is
that firstly it requires no paperwork and all process in customized. We also provide drop up
and pickup options in our Fab Care Laundry. Similar there are various options for iron
section like steam, deep press, and light press. We provide our customers different things
after washing followed by press and fold. This application contributes towards solving

DEPT. OF CSE Page 1 of 42


2021-22 FAB CARE

some of the challenging problem like due issues, customers cannot view their time status
of clothes, our application introduces the new way to assist the user keep time tracking of
their clothes, staff of company can manage the data relate to customer order.

1.2 Scope

The scope of the Fab care application is that today many residents have small and cheap
washing machines that bother them washing clothes at home.

Washing machines are not installed in bachelor’s hostel and similar places, that these
specific categories be found as target groups for dry cleaning and laundryin India.

Arrive at customers chosen location for pick-up, count the number of clothes, weighing the
clothes, sort clothes, tag them and sending information to the customer so that there will no
confusion. According to the fabric selected by customer and the kind of service selected by
them are provided. Door delivery is provided

As our Fab Care is online mobile application the efforts required are very less as we have
door delivery and collection option and the services provided are huge we have scope of
attracting the bachelor’s and working men and women. And it is very useful in tourist
places such that we don’t carry many clothes while travelling.

1.3 Project Description

The Multi-Store Fab Care with Mobile application is related to computer technology and
has adversely made an immense change in this system. The main purpose of this project
“Fab Care Laundry System with Mobile Application” is to provide door-step delivery
to the customers and to make contactless payments available with today’s emerging
technology. As the customer can easily place their order and select their laundry options
according to their choice need, this project makes sure that we provide all the laundry
facilities to the customer’s without actually visiting the laundry store. This Laundry
Application of ours is just one a step ahead to all the laundries out there as we provide all
the options digitally to our customers and make their work effortless. Our fab care has user
login page after login is successful you can choose what kind of service you want and select
your cloth fabric and there is also payment option.
Admin: The role of an admin is to login account of the application to control the data of
user and maintain the application.
User: The user can request service and they also see the status laundry of their clothes time

DEPT. OF CSE Page 2 of 42


2021-22 FAB CARE

by time.
Staff: The staff can see the request services from user and they also can update the status
laundry process time by time.
After login user enters to home page in which it consist of few options like washingand fold,
iron, adding location, and dry clean. Later it shows washing section page in which we can
select the kind of cloth that needs to be washed, next is the order page in which we select
the quantity of the clothes and we also have payment, location, status tracking options.

DEPT. OF CSE Page 3 of 42


2021-22 FAB CARE

CHAPTER 2
REQUIREMENT ANALYSIS

The application will be published on (Play Store) to be available for general public use. The
system contains a control panel for each washing centre that saves all centre data and all
reservation and laundry requests by means of electronic archiving. Each user must create
an account on the application and add all his data to allow the site to make reservations in
any laundry centre he wants The laundry centre has the right to cancel any reservation
process in the event of any emergency in the department. The washing centre has the right
to postpone anyreservation request in cases of high demand or in the inability of the centre
to meet the needs of all users. The app must be responsive with all phone’s screens. The
application should be easy to use, and easy to handle application scenario. The application
must contain an interface to communicate with technical support directly. The application
must contain comfortable and attractive colors. Commission rates charged to laundromat
owners must be reasonable and affordableto ensure they remain in the app family.

Functional requirements:
Our system contains 2 Actors in addition to the system administrator, and each
acting has a set of functions in our system: Customer: The customer creates a new account
for him in our Android application where he enters: first name - second name - last name -
password - photo of personal identity - mobile number - electronic financial payment
method. Then the user searches for the nearest laundry in his area and submits a request to
wash clothes where he must enter the number of pieces he wants to wash - the place of
residence - the date when he wants to deliver his clothes - pay the price of the order,
confirm the order. The owner of the laundry: he logs in with a username and password, he
browses all the laundry requests that have reached him, tracks the requests for which the
financial payment has been confirmed, sends workers from his side to receive the clothes,
performs the washing process and records in the stages in which he is the request appears
to the user. System Administrator: He logs in with a username and password, he controls
the accounts with all the permissions to delete, add and modify, and he tracks system
operations to ensure the integrity of the system.

Performance requirements:
The application must be strong to withstand the large numbers on the system so that

DEPT. OF CSE Page 4 of 42


2021-22 FAB CARE

it does not crash or stop, and the system response must be fast and download user data
quickly.
Power requirements:
The application must be available within 24 hours for all users, and it must be able to
accommodate large numbers of users at the same time, it must be easy to maintain and
develop and be able to expand.

Safety requirements:
The application must be safe from any cyber-attacks, especially because it supports
electronic payment transactions and because it contains a large number ofuser data.

2.1 Software Requirements:

1. Operating System Windows 11

2. Coding Language Java

3. Target SDK version 30(API 30+Android API 30)

4. Platform Android Software Development kit

Table 2.1 Software Requirements

2.2 Hardware Requirements:

1. System type 64-bit operating system, x64-based


processor

2. RAM 4GB and more

Table 2.2 Hardware Requirements

DEPT. OF CSE Page 5 of 42


2021-22 FAB CARE

CHAPTER 3
DESIGN
3.1 System Design
A “Fab Care Laundry System with Mobile Application” offers you more exciting offers
and online laundry option with various payment and delivery options. This laundry
application provides you a complete package of laundry services for all types of fabrics.
The application has all kinds of the services available at much affordable prices and one can
easily handle it. This “Fab Care Laundry System with Mobile Application” makes sure
that all your orders are placed on time without including any shipping charges. It also
makes sure that all your fabrics are handled with gentle care and without any damage to the
order. We have also provided the confirmation E-mails so that we have better
communication with the customer which will gain trust between our customers.

Java
Android applications are developed using the Java language. As of now, that’s
really only option for native applications. Java is a very popular programming
language developed by Sun Microsystems (now owned by Oracle). Developed
long after C and C++, Java incorporates many of the powerful features of those
powerful languages while addressing some of their drawbacks. Still,
programming languages are only as powerful as their libraries. These libraries
exist to help developers build applications. Some of the Java’s important core
features are:

• It’s easy to learn and understand

• It’s designed to be platform-independent and secure, using virtual


machines.

• It’s object-oriented

Android relies heavily on these Java fundamentals. The Android SDK includes
many standard Java libraries (data structure libraries, math libraries, graphics
libraries, networking libraries and everything else you could want) as well as
special Android libraries that will help you develop awesome Android
applications.

DEPT. OF CSE Page 6 of 42


2021-22 FAB CARE

3.2 User Interface

For the development of this project we are using android studio version 4.2.1 .

API: 30

Programming language: Java

User interface: XML

Minimum SDK: API 16

The current system operates manual laundry app, from services, and managing customer’s
record etc. recorded in a book. This is faced with errors, incompleteness, and insufficient
data for analysis. Information regarding services of the laundry are still in black and white
which is not properly organized and managed. From the staffs to customer bills, receipts of
services are recorded in a book but further operations are not being properly handled. As a
result it is difficult in processing, updating and managing.

Fig 3.1: User Interfaces of FabCare Login application.

DEPT. OF CSE Page 7 of 42


2021-22 FAB CARE

Fig 3.2: UI of Home Page of Application

Fig 3.3: UI of Adding Delivery Location

DEPT. OF CSE Page 8 of 42


2021-22 FAB CARE

Fig 3.4: UI of Tracking of Order

3.3 Process Flow

Fig 3.5: Login FlowChart

DEPT. OF CSE Page 9 of 42


2021-22 FAB CARE

Fig 3.6: Payment FlowChart

Fig 3.7: Service FlowChart

DEPT. OF CSE Page 10 of 42


2021-22 FAB CARE

CHAPTER 4

IMPLEMENTATION
4.1 Code Snippets

In implementation we implement code for Fab Care Android Application. Here we are
using 8 activities to build our apk. Each activity contains one xml and one java file. Here
are some files

1. activity_main.xml and MainActivity.java

2. activity_menu.xml and Menu.java

3. activity_find_store.xml and FindStore.java

activity_main.xml

Here we created a new project using an empty activity as our starting point, once that’s
ready head over to codes. Here we have used linear layout as a layout. In this activity we
creating a signup activities for collecting user credentials from user to get logged in.

<?xml version="1.0" encoding="utf-8"?>

<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"

xmlns:app="http://schemas.android.com/apk/res-auto"

xmlns:tools="http://schemas.android.com/tools"

android:layout_width="match_parent"

android:layout_height="match_parent"

android:background="#FFFFFF"

tools:context=".MainActivity">

<TextView

DEPT. OF CSE Page 11 of 42


2021-22 FAB CARE

android:id="@+id/textView8"

android:layout_width="0dp"

android:layout_height="50dp"

android:layout_marginTop="240dp"

android:gravity="center_horizontal|center_vertical"

android:text="Fab Care"

android:textColor="#111111"

android:textSize="36sp"

android:textStyle="bold"

app:layout_constraintEnd_toEndOf="parent"

app:layout_constraintHorizontal_bias="1.0"

app:layout_constraintStart_toStartOf="parent"

app:layout_constraintTop_toTopOf="parent" />

<EditText

android:id="@+id/etEmail"

android:layout_width="0dp"

android:layout_height="50dp"

android:layout_marginStart="20dp"

android:layout_marginLeft="20dp"

android:layout_marginTop="30dp"

android:layout_marginEnd="20dp"

android:layout_marginRight="20dp"

DEPT. OF CSE Page 12 of 42


2021-22 FAB CARE

android:background="@drawable/edit_text"

android:ems="10"

android:hint="Email"

android:inputType="textEmailAddress"

android:paddingLeft="10dp"

app:layout_constraintEnd_toEndOf="parent"

app:layout_constraintHorizontal_bias="0.0"

app:layout_constraintStart_toStartOf="parent"

app:layout_constraintTop_toBottomOf="@+id/textView8" />

<EditText

android:id="@+id/etPassword"

android:layout_width="0dp"

android:layout_height="50dp"

android:layout_marginStart="20dp"

android:layout_marginLeft="20dp"

android:layout_marginTop="24dp"

android:layout_marginEnd="20dp"

android:layout_marginRight="20dp"

android:background="@drawable/edit_text"

android:ems="10"

android:hint="Password"

android:inputType="textPassword"

DEPT. OF CSE Page 13 of 42


2021-22 FAB CARE

android:paddingLeft="10dp"

app:layout_constraintEnd_toEndOf="parent"

app:layout_constraintHorizontal_bias="0.0"

app:layout_constraintStart_toStartOf="parent"

app:layout_constraintTop_toBottomOf="@+id/etEmail" />

<Button

android:id="@+id/btnLogIn"

android:layout_width="0dp"

android:layout_height="wrap_content"

android:layout_marginStart="20dp"

android:layout_marginLeft="20dp"

android:layout_marginTop="16dp"

android:layout_marginEnd="20dp"

android:layout_marginRight="20dp"

android:background="@drawable/button"

android:text="Log In"

android:textAllCaps="false"

android:textColor="#FFFFFE"

app:layout_constraintEnd_toEndOf="parent"

app:layout_constraintHorizontal_bias="0.0"

app:layout_constraintStart_toStartOf="parent"

app:layout_constraintTop_toBottomOf="@+id/etPassword" />

DEPT. OF CSE Page 14 of 42


2021-22 FAB CARE

<LinearLayout

android:layout_width="413dp"

android:layout_height="wrap_content"

android:layout_marginStart="1dp"

android:layout_marginLeft="1dp"

android:layout_marginTop="60dp"

android:layout_marginEnd="1dp"

android:layout_marginRight="1dp"

android:orientation="horizontal"

app:layout_constraintBottom_toBottomOf="parent"

app:layout_constraintEnd_toEndOf="parent"

app:layout_constraintStart_toStartOf="parent"

app:layout_constraintTop_toBottomOf="@+id/btnLogIn">

<TextView

android:id="@+id/textView9"

android:layout_width="149dp"

android:layout_height="50dp"

android:layout_weight="1"

android:gravity="center_vertical"

android:text=" Don't have an account?"

android:textSize="14sp" />

DEPT. OF CSE Page 15 of 42


2021-22 FAB CARE

<TextView

android:id="@+id/tvSign"

android:layout_width="wrap_content"

android:layout_height="50dp"

android:layout_weight="1"

android:gravity="center_vertical"

android:text="Sign Up."

android:textColor="#3F51B5" />

</LinearLayout>

<ImageView

android:id="@+id/imageView3"

android:layout_width="match_parent"

android:layout_height="100dp"

android:foregroundGravity="center"

app:layout_constraintBottom_toTopOf="@+id/textView8"

app:layout_constraintEnd_toEndOf="parent"

app:layout_constraintHorizontal_bias="1.0"

app:layout_constraintStart_toStartOf="parent"

app:srcCompat="@drawable/logo" />

</androidx.constraintlayout.widget.ConstraintLayout>

DEPT. OF CSE Page 16 of 42


2021-22 FAB CARE

MainActivity.java

package com.example.foodex;

import androidx.annotation.NonNull;

import androidx.appcompat.app.ActionBar;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;

import android.os.Bundle;

import android.os.CountDownTimer;

import android.os.Handler;

import android.view.View;

import android.widget.Button;

import android.widget.EditText;

import android.widget.TextView;

import android.widget.Toast;

import com.google.android.gms.tasks.OnCompleteListener;

import com.google.android.gms.tasks.Task;

import com.google.firebase.auth.AuthResult;

import com.google.firebase.auth.FirebaseAuth;

import com.google.firebase.auth.FirebaseUser;

DEPT. OF CSE Page 17 of 42


2021-22 FAB CARE

public class MainActivity extends AppCompatActivity {

Button btnLogIn;

EditText etEmail,etPassword;

TextView tvSign;

FirebaseAuth mFirebaseAuth;

private FirebaseAuth.AuthStateListener mAuthStateListener;

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_main);

tvSign=findViewById(R.id.tvSign);

btnLogIn=findViewById(R.id.btnLogIn);

etEmail=findViewById(R.id.etEmail);

etPassword=findViewById(R.id.etPassword);

mFirebaseAuth=FirebaseAuth.getInstance();

mAuthStateListener=new FirebaseAuth.AuthStateListener() {

@Override

public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) {

FirebaseUser mFirebasebaseUser=mFirebaseAuth.getCurrentUser();

if (mFirebasebaseUser!=null)

DEPT. OF CSE Page 18 of 42


2021-22 FAB CARE

Toast.makeText(MainActivity.this,"You are Logged


In",Toast.LENGTH_SHORT).show();

Intent intent=new Intent(MainActivity.this,Home.class);

startActivity(intent);

else

Toast.makeText(MainActivity.this,"Please Log
In",Toast.LENGTH_SHORT).show();

};

tvSign.setOnClickListener(new View.OnClickListener() {

@Override

public void onClick(View v) {

Intent intent=new Intent(MainActivity.this,SignUp.class);

startActivity(intent);

});

btnLogIn.setOnClickListener(new View.OnClickListener() {

@Override

public void onClick(View v) {

String email = etEmail.getText().toString().trim();

DEPT. OF CSE Page 19 of 42


2021-22 FAB CARE

String password = etPassword.getText().toString().trim();

if (email.isEmpty()) {

etEmail.setError("Please Enter Email ID");

etEmail.requestFocus();

} else if (password.isEmpty()) {

etPassword.setError("Please Enter Password");

etPassword.requestFocus();

} else if (email.isEmpty() && password.isEmpty()) {

Toast.makeText(MainActivity.this, "Fields are Empty",


Toast.LENGTH_SHORT).show();

} else if (!(email.isEmpty() && password.isEmpty())) {

mFirebaseAuth.signInWithEmailAndPassword(email,
password).addOnCompleteListener(MainActivity.this, new
OnCompleteListener<AuthResult>() {

@Override

public void onComplete(@NonNull Task<AuthResult> task) {

if (!task.isSuccessful()) {

Toast.makeText(MainActivity.this, "Login Error, Please Login Again",


Toast.LENGTH_SHORT).show();

} else {

Intent intent = new Intent(MainActivity.this, Home.class);

startActivity(intent);

DEPT. OF CSE Page 20 of 42


2021-22 FAB CARE

});

} else {

Toast.makeText(MainActivity.this, " Error Occurred",


Toast.LENGTH_SHORT).show();

});

@Override

protected void onStart() {

super.onStart();

mFirebaseAuth.addAuthStateListener(mAuthStateListener);

activity_menu.xml

<?xml version="1.0" encoding="utf-8"?>

<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"

DEPT. OF CSE Page 21 of 42


2021-22 FAB CARE

xmlns:app="http://schemas.android.com/apk/res-auto"

xmlns:tools="http://schemas.android.com/tools"

android:layout_width="match_parent"

android:layout_height="match_parent"

android:background="#FCFDFE"

android:orientation="vertical"

tools:context=".Menu">

<fragment

android:id="@+id/listFrag"

android:name="com.example.foodex.MenuListFrag"

android:layout_width="0dp"

android:layout_height="0dp"

app:layout_constraintBottom_toTopOf="@+id/OrderDetailFrag"

app:layout_constraintEnd_toEndOf="parent"

app:layout_constraintHorizontal_bias="0.0"

app:layout_constraintStart_toStartOf="parent"

app:layout_constraintTop_toTopOf="parent"

tools:layout="@layout/fragment_menu_list" />

<fragment

android:id="@+id/OrderDetailFrag"

android:name="com.example.foodex.OrderDetailsFrag"

DEPT. OF CSE Page 22 of 42


2021-22 FAB CARE

android:layout_width="0dp"

android:layout_height="0dp"

app:layout_constraintBottom_toTopOf="@+id/buttonFrag"

app:layout_constraintEnd_toEndOf="parent"

app:layout_constraintHorizontal_bias="1.0"

app:layout_constraintStart_toStartOf="parent"

app:layout_constraintTop_toBottomOf="@+id/listFrag"

tools:layout="@layout/fragment_order_details" />

<fragment

android:id="@+id/buttonFrag"

android:name="com.example.foodex.MenuButtonFrag"

android:layout_width="0dp"

android:layout_height="wrap_content"

app:layout_constraintBottom_toBottomOf="parent"

app:layout_constraintEnd_toEndOf="parent"

app:layout_constraintHorizontal_bias="1.0"

app:layout_constraintStart_toStartOf="parent"

app:layout_constraintTop_toBottomOf="@+id/OrderDetailFrag"

app:layout_constraintVertical_bias="1.0"

tools:layout="@layout/fragment_menu_button" />

</androidx.constraintlayout.widget.ConstraintLayout>

DEPT. OF CSE Page 23 of 42


2021-22 FAB CARE

Menu.java

package com.example.foodex;

import android.content.Intent;

import android.os.Bundle;

import android.view.View;

import android.widget.Button;

import android.widget.ImageView;

import android.widget.TextView;

import android.widget.Toast;

import androidx.appcompat.app.ActionBar;

import androidx.appcompat.app.AppCompatActivity;

import androidx.fragment.app.Fragment;

import androidx.fragment.app.FragmentManager;

public class Menu extends AppCompatActivity implements ItemListAdapter.ItemClicked


{

Button btnHome,btnOrder,btnConfirm,btnBack;

TextView tvItem,tvPrice;

TextView tvPlus,tvMinus,tvQuantity;

DEPT. OF CSE Page 24 of 42


2021-22 FAB CARE

ImageView ivMake;

FragmentManager fragmentManager;

Fragment buttonFrag,listFrag,OrderDetailFrag;

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_menu);

btnHome=findViewById(R.id.btnHome);

btnOrder=findViewById(R.id.btnOrder);

tvItem=findViewById(R.id.tvItem);

tvPrice=findViewById(R.id.tvPrice);

ivMake=findViewById(R.id.ivMake);

tvPlus=findViewById(R.id.tvPlus);

tvMinus=findViewById(R.id.tvMinus);

tvQuantity=findViewById(R.id.tvQuantity);

btnBack=findViewById(R.id.btnBack);

tvPlus.setOnClickListener(new View.OnClickListener() {

@Override

public void onClick(View v) {

DEPT. OF CSE Page 25 of 42


2021-22 FAB CARE

String number=tvQuantity.getText().toString().trim();

String price=tvPrice.getText().toString().trim();

int quntity=Integer.parseInt(number);

int Amount=Integer.parseInt(price);

int perAmount=Amount/quntity;

quntity=quntity+1;

Amount=perAmount*quntity;

tvQuantity.setText(String.valueOf(quntity));

tvPrice.setText(String.valueOf(Amount));}

});

tvMinus.setOnClickListener(new View.OnClickListener() {

@Override

public void onClick(View v) {

String number=tvQuantity.getText().toString().trim();

String price=tvPrice.getText().toString().trim();

int quntity=Integer.parseInt(number);

int Amount=Integer.parseInt(price);

int perAmount=Amount/quntity;

if(quntity<2)

DEPT. OF CSE Page 26 of 42


2021-22 FAB CARE

Toast.makeText(Menu.this,"Wrong
Attempt",Toast.LENGTH_SHORT).show();}

else

quntity=quntity-1;

Amount=Amount-perAmount;

tvPrice.setText(String.valueOf(Amount));

tvQuantity.setText(String.valueOf(quntity));

});

ActionBar actionBar=getSupportActionBar();

// actionBar.setSubtitle("Welcome to our App");

actionBar.setTitle("Fab Care ");

actionBar.setDisplayUseLogoEnabled(true);

actionBar.setDisplayShowHomeEnabled(true);

btnConfirm=findViewById(R.id.btnConfirm);

btnConfirm.setOnClickListener(new View.OnClickListener() {

@Override

public void onClick(View v) {

Intent intent=new Intent(Menu.this, Payment.class);

DEPT. OF CSE Page 27 of 42


2021-22 FAB CARE

startActivity(intent);

});

fragmentManager=getSupportFragmentManager();

listFrag=fragmentManager.findFragmentById(R.id.listFrag);

buttonFrag=fragmentManager.findFragmentById(R.id.buttonFrag);

OrderDetailFrag=fragmentManager.findFragmentById(R.id.OrderDetailFrag);

fragmentManager.beginTransaction()

.show(listFrag)

.hide(OrderDetailFrag)

.show(buttonFrag)

.commit();

btnHome.setOnClickListener(new View.OnClickListener() {

@Override

public void onClick(View v) {

Intent intent=new Intent(Menu.this,Home.class);

startActivity(intent);

});

DEPT. OF CSE Page 28 of 42


2021-22 FAB CARE

btnOrder.setOnClickListener(new View.OnClickListener() {

@Override

public void onClick(View v) {

fragmentManager.beginTransaction()

.hide(listFrag)

.show(OrderDetailFrag)

.hide(buttonFrag)

.commit();

});

btnBack.setOnClickListener(new View.OnClickListener() {

@Override

public void onClick(View v) {

fragmentManager.beginTransaction()

.show(listFrag)

.hide(OrderDetailFrag)

.show(buttonFrag)

.commit();

});

onItemClicked(0);

DEPT. OF CSE Page 29 of 42


2021-22 FAB CARE

@Override

public void onItemClicked(int index) {

tvPrice.setText(ApplicationClass.item.get(index).getItemPrice());

tvItem.setText(ApplicationClass.item.get(index).getItemName());

if(ApplicationClass.item.get(index).getMake().equals("dress"))

ivMake.setImageResource(R.drawable.dress);

else if(ApplicationClass.item.get(index).getMake().equals("hoodie"))

ivMake.setImageResource(R.drawable.hoodie);

else if(ApplicationClass.item.get(index).getMake().equals("skirt"))

ivMake.setImageResource(R.drawable.skirt);

else if(ApplicationClass.item.get(index).getMake().equals("traditional"))

ivMake.setImageResource(R.drawable.traditional);

DEPT. OF CSE Page 30 of 42


2021-22 FAB CARE

else if(ApplicationClass.item.get(index).getMake().equals("westernwear"))

ivMake.setImageResource(R.drawable.westernwear);

else if(ApplicationClass.item.get(index).getMake().equals("sportwear"))

ivMake.setImageResource(R.drawable.sportwear);

else if(ApplicationClass.item.get(index).getMake().equals("jumpsuit"))

ivMake.setImageResource(R.drawable.jumpsuit);

else if(ApplicationClass.item.get(index).getMake().equals("jeans"))

ivMake.setImageResource(R.drawable.jeans);

else if(ApplicationClass.item.get(index).getMake().equals("formal"))

ivMake.setImageResource(R.drawable.formal);

DEPT. OF CSE Page 31 of 42


2021-22 FAB CARE

else

ivMake.setImageResource(R.drawable.tshirt);

activity_find_store.xml

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

xmlns:app="http://schemas.android.com/apk/res-auto"

xmlns:tools="http://schemas.android.com/tools"

android:layout_width="match_parent"

android:layout_height="match_parent"

android:background="#FFFFFF"

android:orientation="vertical"

tools:context=".FindStore">

<TextView

DEPT. OF CSE Page 32 of 42


2021-22 FAB CARE

android:id="@+id/textView3"

android:layout_width="match_parent"

android:layout_height="50dp"

android:layout_marginLeft="10dp"

android:layout_marginTop="10dp"

android:layout_marginRight="10dp"

android:gravity="center_horizontal|center_vertical"

android:text="Add Location"

android:textColor="#03A9F4"

android:textSize="24sp" />

<ImageView

android:id="@+id/imageView8"

android:layout_width="match_parent"

android:layout_height="350dp"

android:layout_gravity="center_horizontal"

app:srcCompat="@drawable/findstore" />

<EditText

android:id="@+id/etStoreName"

android:layout_width="match_parent"

android:layout_height="50dp"

android:layout_marginLeft="10dp"

DEPT. OF CSE Page 33 of 42


2021-22 FAB CARE

android:layout_marginTop="10dp"

android:layout_marginRight="10dp"

android:layout_marginBottom="5dp"

android:background="@drawable/edit_text"

android:ems="10"

android:hint="Enter Location"

android:inputType="textPersonName"

android:paddingLeft="10dp" />

<Button

android:id="@+id/btnStore"

android:layout_width="match_parent"

android:layout_height="50dp"

android:layout_marginLeft="10dp"

android:layout_marginTop="5dp"

android:layout_marginRight="10dp"

android:layout_marginBottom="5dp"

android:background="@drawable/button"

android:text="Add Delivery Location"

android:textAllCaps="false"

android:textColor="#FFFFFF"

android:textSize="18sp" />

</LinearLayout>

DEPT. OF CSE Page 34 of 42


2021-22 FAB CARE

FindStore.java

package com.example.foodex;

import android.content.Intent;

import android.net.Uri;

import android.os.Bundle;

import android.view.View;

import android.widget.Button;

import android.widget.EditText;

import androidx.appcompat.app.ActionBar;

import androidx.appcompat.app.AppCompatActivity;

public class FindStore extends AppCompatActivity {

Button btnStore;

EditText etStoreName;

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

DEPT. OF CSE Page 35 of 42


2021-22 FAB CARE

setContentView(R.layout.activity_find_store);

btnStore=findViewById(R.id.btnStore);

etStoreName=findViewById(R.id.etStoreName);

btnStore.setOnClickListener(new View.OnClickListener() {

@Override

public void onClick(View v) {

String location=etStoreName.getText().toString().trim();

Intent intent=new Intent(Intent.ACTION_VIEW,


Uri.parse("geo:0,0?q="+location));

startActivity(intent);

});

ActionBar actionBar=getSupportActionBar();

actionBar.setTitle("Fab Care");

DEPT. OF CSE Page 36 of 42


2021-22 FAB CARE

CHAPTER 5

RESULT AND DISCUSSION

5.1 Screenshots

Fig 5.1: Login and SignUp Page

DEPT. OF CSE Page 37 of 42


2021-22 FAB CARE

Fig 5.2: Home Page

Fig 5.3: Menu Page

DEPT. OF CSE Page 38 of 42


2021-22 FAB CARE

Fig 5.4: Selecting Clothes and their Units Page

Fig 5.5: Adding User Location to Delivery Page

DEPT. OF CSE Page 39 of 42


2021-22 FAB CARE

Fig 5.6: Payment Page

DEPT. OF CSE Page 40 of 42


2021-22 FAB CARE

Chapter 6

CONCLUSION AND FUTURE ENHANCEMENTS

In conclusion, Laundry Management System has to do with making appropriate effort to


stop the rising problem to all manual laundry operation in order to enhance the operation of
such laundry. In this project, the software or system that can be used to aid all laundries
that is still operating manually have been successfully developed. The software can be
implementing in all types of laundry. The software has a large memory of storing all the
services in the laundry.It has been a great pleasure for me to work on this exciting and
challenging project. This project proved good for us as it provided practical knowledge of
not only programming in Android Studio, Java, Firebase, based application and also about
all handling procedure related with “LAUNDRY DATABASE MANAGEMENT
SYSTEM”. It also provides knowledge about the latest technology used in developing
application and client server technology that will be great demand in future. This will
provide better opportunities and guidance in future in developing projects independently.
The application is useful for maintaining organization in computerized way. It contains
some limitation which we would like to enhance it in our next tasks and try to overcome
them.

DEPT. OF CSE Page 41 of 42


2021-22 FAB CARE

BIBILIOGRAPHY

1. Google Developer Training, "Android Developer Fundamentals Course – Concept

Reference”, Google Developer Training Team, 2017.

https://www.gitbook.com/book/googledeveloper-training/androiddeveloperfundamentals-
course-concepts/details .

2. Erik Hellman, “Android Programming – Pushing the Limits”.

3. Dawn Griffiths and David Griffiths, “Head First Android Development”.

4. J F DiMarzio, “Beginning Android Programming with Android Studio”.

5. Anubhav Pradhan, Anil V Deshpande, “Composing Mobile Apps” using Android.

 www.github.com
 www.google.com
 www.freecodester.com
 www.stackoverflow.com

DEPT. OF CSE Page 42 of 42

You might also like