Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/332675762

Design and Implementation of an Android Application for Smart Shopping

Conference Paper · April 2019


DOI: 10.1109/ICCSP.2019.8698109

CITATIONS READS
6 1,863

6 authors, including:

Rajesh Kannan Megalingam


Amrita Vishwa Vidyapeetham - Humanitarian Technology (HuT) Labs
170 PUBLICATIONS   649 CITATIONS   

SEE PROFILE

Some of the authors of this publication are also working on these related projects:

Robotic Coconut Tree Climber and Harvester - AMARAN View project

Amaran View project

All content following this page was uploaded by Rajesh Kannan Megalingam on 21 November 2019.

The user has requested enhancement of the downloaded file.


International Conference on Communication and Signal Processing, April 4-6, 2019, India

Design and Implementation of an Android


Application for Smart Shopping
Rajesh Kannan Megalingam, Souraj Vishnu, Swathi Sekhar, Vishnu Sasikumar, Sreekumar S and
Thejus R Nair

Abstract—The growth of Android applications around the Hence its all the more necessary to develop better and more
world is extraordinary. People turn towards technology for sophisticated android applications in order to take India to the
making their life more innovative and find solutions to their
next level in shopping.
daily problems. When it comes to shopping, customers find it
very difficult to find their products around the supermarket as The app is build using the Android Studio software which
well as to stand in long billing counter queues. Here we have is the official Google IDE for Android development. It is an
come up with an android application which can be used in smart open source software thus increasing cost efficiency, and
shopping carts that solve these dilemmas and provide a better provides various tools for app development on every android
shopping experience. Our smart app consists of two parts which device possible. The main advantage of this software is the
mainly focuses on navigation to the item’s location and
availability of the real-time platform called emulator tool to
automatic billing of the products that the user has purchased.
The building environment of the app is the open source software test our app. Apart from that, the app can also be tested on
called Android Studio software. An RFID reader is used to scan smartphones through USB debugging. Our app consists of
the products. This paper discusses the design and two sections: Navigation and Billing System. Navigation
implementation of the app and the results thus obtained. primarily focuses on controlling the movement and
Index Terms—Android App, Smart Shopping, Android orientation of the cart. This is useful for customers who are
Studio, RFID, Shopping Carts.
unable to locate their products in a huge crowded
I. INTRODUCTION supermarket. The app provides the user with a manual mode

I
and a fixed mode. The manual mode contains buttons that the
NDIA is among the largest marketing hub in the world.
user can utilize to manually navigate an automatic shopping
The production, as well as consumption in India, has
cart. The fixed mode is a bit more complex and is more
increased drastically over the past few decades and it’s very
preferred by customers since it contains a map which shows
important that we provide consumers with the best
all the fixed positions of the items available in the
experience. When it comes to shopping, people find it rather
supermarket. Customers have to tap on these fixed positions
difficult and tiring to locate the products they wish to buy.
in the app in order to move the automatic shopping cart to the
Long and crowded billing counters make shopping a time-
desired location. The billing system mainly focuses on
consuming task. With the advancement in technology, mobile
automatically updating the list and amount of the products
devices are not just tools for making calls or sending a
purchased by the user. This is achieved by fixing an RFID
message. They have become our communication hub,
scanner in the shopping cart which can read the tag number
entertainment portal, our wallet and the gateway to real-time
of the products and scan the items into the app. The Android
information designed to our needs. This was possible only
application can be used with electronic shopping carts with
through the development in android which resulted in
onboard sensors and navigation capabilities.The rest of this
numerous inventions in the mobile world that gave birth to
paper Section II describes the Motivation of the work. Related
the powerful mobile devices that we use today. Around 650
work is explained in the Section III. System Architecture is
million people use mobile phones in India of which 300
explained in the Section IV. Implementation and results are
million are smartphone users. This has led India in becoming
discussed in the Section V and VI. Conclusion are explained
a bigger producer than the U.S and is only second to China.
in Section VII and finally gives future work in Section VIII.

II. MOTIVATION
As technology evolves, so does the human race. The
adoption of android applications in our daily lives has saved
Rajesh Kannan Megalingam, Souraj Vishnu, Swathi Sekhar, Vishnu us a lot of time and effort. When we take a survey, people
Sasikumar, Sreekumar S and Thejus R Nair are with the Department of
Electronics and Communication Engineering, Amrita Vishwa Vidyapeetham, doing outdoor shopping is declining at a rapid pace as
Amritapuri, Kerala, India. (e-mail: rajeshkannanieee.org, compared to online shopping mainly because of the painless
sourajvishnup@gmail.com,swathi2596@gmail.com,vishnusasikumarpp@gmail. and time-saving advantage of the later. Although there has
com,sksreekumar94@gmail.com and thejusnair@gmail.com)

978-1-5386-7595-3/19/$31.00 ©2019 IEEE 0470


been adoption of technologies to change this scenario, smart application to the wheelchair. Paper [9] presents the
applications to turn the supermarket experience to an implementation of an android app which functions as an user
effortless process is still a dream in the industry. This interface to control the movement of a pole climbing robot. In
motivated us to discover an innovative smart app which [10] the authors have given a detailed comparison on various
reduces the energy invested in pushing heavy supermarket platforms for android development. The platforms that have
carts and aids the user to find the products easily. This will been reviewed are JAVA ME, .NET CF, Flash Lite, and
motivate more people to come back towards the supermarket Android. Various parameters like run time memory
experience that is rapidly declining. Another major drawback requirement, device support, User Interface support,
of the existing shopping systems is the use of barcode development languages, deployment methods etc. are
scanning where communication is based on the line of sight evaluated for these platforms. In the paper, [11] authors
propaganda. With our efficient billing system using RFID, identified the design requirements of a smart shopping cart
customers don’t have to stand in billing queues for long which uses RFID readers and tags for the total price
hours. We have come up with a solution where the total calculation. The RFID reader enables the user to pay the bill
amount to be paid by the customers is displayed in the app. using the cart itself and thus avoids the tiring billing queues.
The entire setup was made and they have also designed secure
III. RELATED WORKS communication protocol to make the system more secure. A
In research [1], the authors have developed an android system capable of visualizing the data generated by biosensors
application that can help the shoppers in searching for items for monitoring ICU patients is described in [12]. Roving’s
in the store. the application has two screens corresponding to Bluetooth module RN-42 is used to transmit the data from the
searching and map. The user can type in the products in the sensors to the android device. The android interface is
search bar. A centralized server returns available results for programmed to reduce the noise in order to make the
the search. On selecting the preferred search result, the map readings clearer. In the paper [13]
screen displays the location of the chosen item on the floor
plan of the store. in [2], we see how the authors have built an IV. SYSTEM ARCHITECTURE
android application for an educational institute. The software The paper mainly focuses on the software development.
android studio is used to develop the application. Android The block diagram of the android app is as depicted in Fig. 1.
Studio has a large number of diverse views available for the The app functions to establish a connection between the user
development of the application. Some of the common views and the smart carts. This communication is depicted in the
are button, scroll view, list view, checkbox, search view etc. A simple diagram shown in Fig. 2. The app can be connected to
layout editor that supports drag and drop of components the cart using the Bluetooth module HC-05 which is designed
makes the app more user-friendly. The research paper [3] to work in a Master Slave configuration thus making it
describes a bookstore management application which is used superior for serial wireless connection.
to administrate the transaction of books. Users have to
register and make an account during the first time login. A
mobile application to evaluate English pronunciation skills is
reported in research work [4]. In this app, the user is provided
with random English words which are fetched from the
SQLite Database. The user has to pronounce the words. The
system compares the received input with the database and
notifies whether the pronunciation is correct or incorrect. In
paper [5] the authors have developed an android application
which can track the nutritional consumption of the users. The
application was developed using Android Studio. The app can
provide tips to the user for improving his/her diet. In the
research paper [6] the authors have introduced a location-
based application for shopping assistance. The users can
Fig.1. System Architecture
search for nearby shops where a particular product is
available. The location of the user is determined by the GPS
(global positioning system) system of the mobile phone. In [7]
an Android application for controlling a robot is discussed.
The application is used to achieve the movement of the robot.
A Bluetooth module along with 8051 microcontroller is used
to receive data from the smartphone. In research [8] the
authors introduce a wheelchair controlled by an android
application. The application acts as a wireless control system
for the wheelchair. The application is developed using the
Fig. 2. Communication Flow diagram
tool MIT app inventor. Bluetooth is used to connect the

0471
A. Design
The design of the layout of the app is discussed in this
section. Emphasis is given on the functionality of the app and
not on creating an elaborative design. The android
application is coded in Java and will run on all smartphones
that have an android operating system. The app has different
pages each having a specific purpose. The app can be
connected to the smart cart using Bluetooth. On opening the
app, a dialog box will appear to allow permissions for the app
Fig. 5. Layout Of The First Page
to access Bluetooth of the mobile as shown in Fig. 3.
This is depicted in Fig. 6. The map consists of the layout of
the supermarket. This helps the users to easily locate items in
the store. Since the position at which different components
are kept could change from time to time, the map should be
updated regularly. So the app was given access to internet
connection. The app fetches the map from a website whose
url is provided to the app.
The website to be used to fetch the map could be an open
source image hosting website. The status page shows various
information regarding the app. Additionally, it provides the
Fig. 3. Dialog Box Seeking Bluetooth Permission user an opportunity to give feedback and share shopping
experiences. This helps the developers to improve the
If the user selects the allow button, then the Bluetooth of
functionalities of the app. Similarly, it enables businesses to
the mobile is enabled and a toast message is shown indicating
analyze and evaluate customer satisfaction. On clicking the
that the Bluetooth is ON. Whereas if the Bluetooth of the
navigation button, the user is taken to a page which shows
device is ON prior to the opening of the app, then the dialog
two options that the user can choose from. They are named as
box will not pop-up. In this case, a toast indicating that the
‘manual’ and ‘fixed’. Each of these buttons leads to different
Bluetooth is ON will be displayed as shown in Fig. 4.
pages. These form the control section where the app directs
the movement of the cart. the manual page contains five
buttons namely front, back, left, right, stop as shown in Fig.
7.
On pressing these buttons, the cart can be moved in
corresponding directions. This feature helps window shoppers
who prefer to browse through the aisles and examine the
merchandise without an intent to buy. Apart from that, the
manual mode helps in debugging of the cart.
The ‘fixed’ section consists of the map of the store where
each section is numbered. The user can choose any number as
Fig. 4. Toast Indicating That Bluetooth Is Enabled
per his/her choice from a drop-down menu. On choosing the
The first page lets the user connect the app to the shopping desired destination, the application sends a message
cart. On clicking the connect button, a dialog box appears containing information about the chosen location to the cart
which shows the progress in forming a connection. In the and the cart can move to that destination based on this data.
background, the application tries to establish a connection The map is present as an image and it is accessed from the
with the Bluetooth present in the cart. The HC-05 Bluetooth internet. Once the user clicks the Billing System button, the
module is used as the bluetooth of the shopping cart. This user is provided with the window which contains a list onto
module has an operating voltage of 5V and a operating which the products are added. This window is aided by an
current of 30mA. The module has a maximum range of RFID (radio-frequency identification) reader and Arduino.
100m. An appropriate toast message indicating the status of The function of the Arduino software is to read and write the
the connection is shown after a while. If the connection is data that we wish to load in the app. Thus the name and price
successful, the second page is reached but if the connection of the items are added and once the customers scan the
fails then an error message is shown. The layout of the first products using the reader the data is received automatically.
page is shown in Fig. 5. The second page forms a central The android app consists of a textView onto which the tag
location of the app. From this page, the user can choose number is loaded; a button which is used to add the items to
different options like navigation, billing, map, status etc. the list and a ListView which contains the items that the user
There are buttons for each of these options. purchased as shown in Fig. 8.

0472
Fig. 8. layout of the ‘billing’ page

Fig. 6. layout of the second page Fig. 7. layout of the ‘manual’ page

V. IMPLEMENTATION Fig. 9. Layout with guideline Fig.10. Layout with an ImageView

The application consists of various activities aiding in The JAVA file contains the main code that is written for
navigation and product scanning. Each activity can be the working of the app. It contains the UUID (Universally
understood as a single page in the app. These activities are Unique Identifier) that is used to connect the smart cart with
Java classes. The layout of a screen is described in the activity the app and the UID (Unique Identification Number) of the
called XML file. In this app, only linear layout is used. In the items that are scanned. The UID is the data that is received to
first page, the user is asked to connect the device to the the app as InputStream. This InputStream is sent from the tag
shopping cart. On pressing the ‘connect’ button the via Bluetooth module and the data appears in the application.
application checks for nearby devices whose Bluetooth is
enabled. On finding a suitable shopping cart, the devices get VI. RESULTS
paired to it and the connection is established. This page has The application was tested on emulator and smartphones.
two imageView which hold the logo of the institute. The In both cases, the app performed efficiently with no errors.
‘connect’ button also serves the purpose of opening the next The application did not crash at any point in time. The app
page in the app. The second page consists of four buttons was able to control the smart shopping cart without any
each serving the purpose of navigating to different pages delays. Based on the commands received from the
based on user preference. It is important that each button smartphone, the shopping cart was able to move in the
occupy a fixed position in the screen irrespective of screen preferred directions. Similarly, in the case of RFID scanning
sizes. This is ensured by providing horizontal and vertical activity, the app could correctly scan the RFID tag from the
layouts and giving constraints to the buttons to these product and identify the product being scanned. it was able to
guidelines as shown in Fig. 9. Each button is provided with a calculate the total bill to be paid by the user at the end of
unique id to differentiate it from other buttons. The buttons in shopping.
‘manual’ control page are programmed to send data streams While examining the working of the app, it was found that
to the shopping cart via Bluetooth. Each button sends a there is 100% success rate in each direction of the motion
different set of data. Based on the received data, the control. To prove this, the app was tested in several mobile
devices and we obtained the overall response time for the
microcontroller can process the signals and facilitate
motion control. We extracted 80 readings and the average
movement of the cart. A spinner is used to obtain the drop-
was computed as shown in Table I. One more integral part of
down menu in the android studio. The values in the spinner the app is the scanning of products using RFID reader. Hence
can be added to strings.xml file and later referenced in the its necessary to calculate its accuracy by observing the
java file of the activity. TextView is used to display texts. In response time a user takes to scan the products to the app.
order to access the map, an imageView is first placed into the Although the RFID reader is very efficient, various other
layout and the url is referenced through the Picasso extension factors such as orientation of the products, speed of scanning
available for android studio. The xml file for the ‘fixed’ page etc. play a crucial role in determining this time. This is
is displayed in Fig. 10. recorded for 10 readings and is tabulated in Table II.

0473
TABLE I ACKNOWLEDGEMENT
RESPONSE TIME (AVERAGE OF 80 READINGS)
RESPONSE DEVICE DEVICE DEVICE DEVICE We would like to express our sincere gratitude to Almighty
TIME(milliseconds) 1 2 3 4 God for giving us the opportunity to carry out the research in
FORWARD 27.45 28.62 27.99 27.34 a successful manner. We extend our sincere thanks to Amrita
BACKWARD 38.20 37.25 36 37.8 Vishwa Vidyapeetham and the Humanitarian Technology
LEFT 26 36.75 33.42 31.29
(HuT) Lab for aiding us in this in this venture.
RIGHT 32 30.92 33.20 31.25
REFERENCES
STOP 34.21 25 30.12 31
[1] Dylan Hicks, Kevin Mannix, Hannah M. Bowles, Byron J. Gao
“SmartMart: IoT-based In-store Mapping for Mobile Devices,” in Proc. 9th
TABLE II
RESPONSE TIME (AVERAGE OF 10 READINGS) IEEE International Conference on Collaborative Computing:
USER RESPONSE TIME (s) Networking, Applications, and Worksharing, Austin, TX, USA
USER 1 0.75 [2] Reetesh V. Golhari, Prasann A. Vyawahare, Pavan H. Borghare, Ashwini
USER 2 1 Manusmare, ”Design and Implementation of Android base Mobile App for
an Institute” in International Conference on Electrical, Electronics, and
USER 3 0.25
Optimization Techniques (ICEEOT) - 2016, Chennai, India
USER 4 0.99
[3] Zhenhai Mu, Lizhen Jiang, “Online Bookstore Management System Based
on Android”,in International Conference on Virtual Reality and
VII. CONCLUSION Intelligent Systems 2018, Changsha, China
[4] Rizqi Mutqiyyah, Aliv Faizal Muhammad,”Developing Mobile App of
Few supermarkets have digital presence enabling online
English Pronunciation Test Using Android Studio”, in 2016 International
purchase of items but do not have applications for various in-
Electronics Symposium(IES), Denpasar, Indonesia
store interactions. In today’s technological world we are [5] Deepali Bajaj, Asha Yadav, Bhawna Jain, Deeksha Sharma, Diksha
seamlessly able to integrate technologies to one’s lifestyle and Tewari, Dinika Saxena, Disha Sahni, Preetanjali Ray,”Android Based
enhance customer experience. Digital transformation is Nutritional Intake Tracking Application for Handheld Systems” in 2017
causing tremendous changes in the manner in which 8th International Conference on Computing, Communication and
businesses function. Android is one of the most widely used Networking Technologies (ICCCNT), Delhi, India
operating systems in the world. It is revolutionizing the [6] Kin Chi Chan, Tak Leung Cheung, Siu Hong Lai, Kin Chung Kwan, Hoyin
manner in which the technological sector is operating. An Yue and Wai-Man Pang,” Where2Buy: A Location-based Shopping App
android based application can effectively serve the purpose of with Products-wise Searching” in 2017 IEEE International Symposium
aiding the customers in shopping by working like a digital on Multimedia (ISM), Taichung, Taiwan
assistant. Through this research we were able to address [7] M.Selvam,”Smart phone based robotic control for surveillance
some of the common issues faced by customers in shopping applications” in International Journal of Research in Engineering and
stores and we have proposed a solution to it through an Technology, eISSN: 2319-1163, pISSN: 2321-7308
android application. The application can be used by [8] Rajesh Kannan Megalingam, Sarath Sreekanth, Govardhan A, Chinta Ravi
customers to control smart shopping carts. It can be used for Teja, Akhil Raj,” Wireless Gesture Controlled Wheelchair” in
locating products in a supermarket without any assistance International Conference on Advanced Computing and Communication
from staffs. A store specific map helps the users to locate Systems,2017, Coimbatore, India.
products in the store. The manual tab is specifically designed [9] Rajesh Kannan Megalingam, S Venkatraj Reddy, G.Sriharsha, P.Surya
to suite window shoppers. RFID technology is used to Teja, K.Sai Kumar, Parvathy Gopal,”Study and Development of Android
automatically scan items when they are put into the shopping Controlled Wireless Pole Climbing Robot” in IEEE International WIE
Conference on Electrical and Computer Engineering,2015,Dhaka,
cart. All items purchased and their cost can be viewed. This
Bangladesh
helps the users in keeping track of their expenditure as they
[10] Damianos Gavalas and Daphne Economou,” Development Platforms for
shop.
Mobile Applications: Status and Trends” IEEE Software,Volume:
28 , Issue:1 ,Jan.-Feb.2011
VIII. FUTURE WORK
[11] Ruinian Li, Tianyi Song, Nicholas Capurso, Jiguo Yu, Jason Couture,
Our future works are aimed at incorporating the following Xiuzhen Cheng,”IoT Applications on Secure Smart Shopping System”
features into the application. A customized user interface will IEEE Internet of Things Journal, Volume: 4 , Issue: 6 , Dec. 2017
be provided to the app with artistic features. The app will be [12] Francesca Stradolini, Stefano Riario, Cristina Boero, Camilla Baj-Rossi,
extended to make it compatible to serve a large number of Irene Taurino, Grégoire Surrel, Giovanni De Micheli, Sandro
users. In order to make the app more productive, hosting it on Carrara,”Wireless Monitoring of Endogenous and Exogenous
cloud platforms will be investigated. The app will be designed Biomolecules on an Android Interface”, IEEE Sensors Journal, Volume:
to suggest personalized offers and discounts to users based on 16 , Issue: 9 , May1,2016
customer shopping patterns. The app will provide more [13] Muhammad Jawad Hussain and Shan Gao “An RFID Based Smartphone P
details about the items like product life history, nutritional roximity Absence Alert System” IEEE Transaction on Mobile Computing,
values, items often bought together etc. VOL. 16, NO. 5, MAY 2017.

0474
View publication stats

You might also like