Mad Micro Project
Mad Micro Project
Title of
Customer Details Database Management.
Project: -
Prathamesh Chandrakant
34
Shinde
Name &
Signature Ms. Maskar V.B.
of faculty
A PROJECT REPORT ON
“Customer Details Database Management”
Submitted in partial fulfilment of the requirements of the award of
degree of DIPLOMA ENGINEERING
In
Computer Engineering
BY: -
SVERI’S
COLLEGE OF ENGINEERING (POLY).
PANDHARPUR 2023-24
CERTIFICATE
The project report entitled “Customer Details Database Management”
Submitted by
09.Raj Deepak Debadwar
Examiner Principal
(Prof. ) (Prof. Misal N.D.)
Date:
Place: Pandharpur
ACKNOWLEDGEMENT
I take this opportunity to express my sincere thanks and deep sense of gratitude to my guide, Ms.
Maskar V.B. mam, for her constant support, motivation, valuable guidance and immense help
during the entire course of this work. Without her constant encouragement, timely advice and
valuable discussion, it would have been difficult in completing this work. I would also like to
acknowledge the Computer Engineering department who provided me with the facilities for
completion of the project. We are thankful to them for sharing their experience in the research
field with me and providing constant motivation during entire project work.
1.0 Rationale:
In the realm of Android application development, efficient management and storage of user data play a
crucial role in ensuring a seamless user experience. The provided code exemplifies a fundamental
approach to creating a customer database within an Android application. By employing SQLite, a
lightweight and versatile relational database management system, alongside intuitive UI components,
the application enables users to store, retrieve, and update customer details with ease. Furthermore, the
integration of animation enhances the user interface by providing visual feedback upon user
interactions, thus elevating the overall user experience.
2.0 Aim/Benefits of the micro-project:
Data Management: Enable users to efficiently store, retrieve, and update customer information such as
name, ID, mobile number, address, and pin code within the application.
User Interface: Design an intuitive user interface with EditText fields for inputting customer data,
TextViews for displaying search results, and buttons for submitting and searching customer
information.
Database Integration: Integrate SQLite, a lightweight and efficient relational database management
system, to manage the storage and retrieval of customer details within the Android application.
I. Ease of Use
II. Efficient Data Management
III. Improved User Experience
IV. Scalability
V. Learning Opportunity
4.0Literature Review:
a) Literature Survey.
b) Creating frames.
c) Creating code.
Activity_main.xml
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Customer Details"
android:textSize="32sp"
android:textStyle="bold"
android:layout_marginBottom="16dp"/>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Customer Name">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/cname"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Customer ID">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/cid"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Mobile No.">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/cmob"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="phone"/>
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Address">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/caddr"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Pincode">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/cpin"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="number"/>
</com.google.android.material.textfield.TextInputLayout>
<Button
android:id="@+id/insert"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Submit"
android:textColor="#FFFFFF"
android:background="#1976D2"
android:layout_marginTop="16dp"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Search Customer"
android:textStyle="bold|italic"
android:textSize="20sp"
android:layout_marginTop="32dp"
android:layout_marginBottom="16dp"/>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Enter Customer ID">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/sid"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</com.google.android.material.textfield.TextInputLayout>
<Button
android:id="@+id/sbtn"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Search"
android:textColor="#FFFFFF"
android:background="#1976D2"
android:layout_marginTop="16dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Customer Name : "
android:textSize="16sp"
android:layout_marginTop="32dp"/>
<TextView
android:id="@+id/scname"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="16sp"
android:layout_marginTop="8dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Customer ID : "
android:textSize="16sp"
android:layout_marginTop="16dp"/>
<TextView
android:id="@+id/scid"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="16sp"
android:layout_marginTop="8dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Mobile No. : "
android:textSize="16sp"
android:layout_marginTop="16dp"/>
<TextView
android:id="@+id/scmob"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="16sp"
android:layout_marginTop="8dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Address : "
android:textSize="16sp"
android:layout_marginTop="16dp"/>
<TextView
android:id="@+id/scadd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="16sp"
android:layout_marginTop="8dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Pincode : "
android:textSize="16sp"
android:layout_marginTop="16dp"/>
<TextView
android:id="@+id/scpin"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="16sp"
android:layout_marginTop="8dp"/>
</LinearLayout>
</ScrollView>
</RelativeLayout>
MainActivity.java
package com.sveri.custdb;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
public class MainActivity extends AppCompatActivity {
EditText name, id, mobile, address, pincode, sid;
String cname, cid, cmobile, caddress, pin, csid;
Button search, submit;
TextView scname, scid, scmob, scadd, scpin;
SQLiteDatabase sqLiteDatabase;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
initialization();
submit.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
sqLiteDatabase = openOrCreateDatabase("CustomerDetails", Context.MODE_PRIVATE,
null);
String table = "Create table if not exists CustomerDetailsTable(id integer primary key
autoincrement not null, cid varchar, name varchar, mobile varchar, address varchar, pincode
varchar)";
sqLiteDatabase.execSQL(table);
cname = name.getText().toString();
cid = id.getText().toString();
cmobile = mobile.getText().toString();
caddress = address.getText().toString();
pin = pincode.getText().toString();
8.0 Output:
9.0 Skill Developed
Screenshot 4
I. Android App Development Skills
Screenshot 5
II. SQLite Database Management Skills
III. UI Design and Layout Skills
IV. Integration and Debugging Skills
V. Project Management Skills
VI. Documentation and Communication Skills
10.0 Conclusion
In conclusion, the project outlined here serves as a valuable learning experience in Android app
development, SQLite database management and UI design. By creating an Android application for
managing customer details with a local database, developers gain practical insights into building
robust and user-friendly mobile applications. Throughout the project, various skills are developed,
including proficiency in Java or Kotlin programming, understanding of SQLite database operations,
familiarity with XML layout design, and implementation of animations to enhance user experience.
Furthermore, the project demonstrates the integration of backend functionality with intuitive user
interfaces, enabling users to store, retrieve, and update customer information seamlessly. The
inclusion of animation effects on button clicks adds a visually appealing aspect to the application,
improving user engagement and providing immediate feedback.
Overall, this project not only enhances technical skills but also fosters critical thinking, problem-
solving, and project management abilities. By successfully completing this project, developers are
better equipped to tackle more complex Android app development challenges and contribute to the
ever-evolving landscape of mobile technology
11.0 References:
www.goggle.com
https://pressbooks.senecacollege.ca/introbusinessbam101/chapter/ unknown /
https://ithinklogistics.com/blog/types-of-business-ownerships-in-india/?amp=1
https://smallbusiness.chron.com/advantages-disadvantages-different-types-busi ness-
entities-22544.html