Professional Documents
Culture Documents
Fitness Management Application Using Android Application Development
Fitness Management Application Using Android Application Development
On
Fitness Management Application Using Android Application
Development
Submitted to :
Amity University
Uttar Pradesh
Bachelor of Technology
in
Computer Science and Engineering
By
Rishabh Shukla
A2305216665
1
DECLARATION
I do hereby declare that the Project report entitled Fitness Management Application Using
Android Application Development is an authentic work developed by me under the
guidance of Dr. Anil Kumar Giri and submitted for evaluation in 5th Semester for the
degree of B.Tech Computer Science and Engineering at Amity School of Engineering
and Technology, Atmity University Uttar Pradesh.
I also declare that any or all contents incorporated in this report have not been submitted in
any form for the award of degree or diploma of any other institution or university.
2
ACKNOWLEDGEMENT
I want to thank my mentor Dr. Anil Kumar Giri for providing a constant support and
guideline throughout the period of term paper. His kind words of motivation helped me out
through the difficulties and suggestions made me better.
I want to thank my parents for being a constant support and acting as a lifeline, for always
being with me in times of thick and thin.
Rishabh Shukla
B. Tech CSE, 5th Semester
Amity School of Engineering and Technology
Amity University, Uttar Pradesh
3
CERTIFICATE
This is to attest that Mr. Rishabh Shukla student of B.Tech. in CSE has carried out
the work offered in the project of the Intership on " FITNESS MANAGEMENT
APPLICATION USING ANDROID APPLICATION DEVELOPMENT " as a part of
Third year program of Bachelor of Technology in CSE from ASET , Amity University,
Noida, Uttar Pradesh under my direction.
4
ABSTRACT
Fitness management app is an approach to make our daily life more healthier and fulfilling,
by calculting our daily calorie intake and managing our BMI, BMR and protein intake will
help us to track our health better than ever before.
The app is devided into two parts, one is calculating daily calorie intake based on what the
user is eating throughout the day by using calorie value of food products and second part is
taking user’s fitness test by using their weight, height, age, sex and thier physical activitie s.
This test contain calorie calculation, Protein Intake, BMI, BMR.
Android platform is used for this perpose because of the goal in mind to reach as many
people as possible and this can only be done through a moblile platform because of the
reach and large number of users of mobile phones.
5
LIST OF ABBREVIATIONS
6
TABLE OF CONTENTS
1. Declaration............................................................................. 2
2. Aknowledgement................................................................... 3
3. Certificate............................................................................... 4
4. Abstract.................................................................................. 5
5. List of Abbreviation............................................................... 6
6. Introduction............................................................................ 8 – 10
12. References.............................................................................. 21
7
TABLE OF FIGURES
8
INTRODUCTION
What is an Android?
Android is an open source operating System for smart phone, tablets, watches, TV’s and
computers or in other words it is an operating system for mobile devices. Android offers a
very focused and unified approach for developing applications for mobile devices which
means developers need to create applications only for Android, and their applications will
be able to run on almost all the different android devices without any extra effort.
Android was created by the Open Handset Alliance(OHA), supported by Google, and few
other companies. Android is mainly based on touch guestures i.e direct manipulation of
data on a screen that mainly related or inspired by real-world actions. It provides us with
the on-screen object that can be manipulated, along with a virtual keyboard which can be
used for text and number input.
Android Version:
1. Android 1.0, 1.1(Apple pie)
2. Android 1.5(Cupcake)
3. Android 1.6(Donut)
4. Android 2.0(Eclair)
5. Android 2.2.x(Froyo)
6. Android 2.3 - 2.3.2(Gingerbread)
7. Android 3.0.x, 3.1.x, 3.2(HoneyComb, HC _MR1, HC_Mr2)
8. Android 4.0 - 4.0.2, 4.0.3 - 4.0.4((Ice_Cream_Sandwich,ICS_MR1)
9. Android 4.1 - 4.1.1, 4.2 - 4.2.2,4.3(Jelly_Bean, JB_MR1, JB_MR2)
10. Android 4.4, 4.4W (Kitkat, K_Watch)
11. Android 5.0, 5.1(Lollipop, L_MR1)
12. Android 6.0 (Marshmallow)
13. Android 7.0 (Nougat)
14. Android 8.0 (Oreo)
9
Java in Android App Development.
Java is a open source programming language that doesn’t directly compile to machine code
but it refers to a virtual machine called Java runtime environment which understands a
format in between the final machine code i.e; java byte-code. Java is needed to run with a
virtual device on each platform that runs it.
An android app uses an Android application that runs on the Android platform. It builds on
a custom virtual machine that gives its user the additional usage and application power and
a user-friendly environment Android is an open source operating System for smart phone,
tablets, watches, TV’s and computers or in other words it is an operating system for mobile
devices. Android offers a very focused and unified approach for developing applicatio ns
for mobile devices which means developers need to create applications only for Android,
and their applications will be able to run on almost all the different android devices without
any extra effort.
Android was created by the Open Handset Alliance(OHA), supported by Google, and few
other companies. Android is mainly based on touch guestures i.e direct manipulation of
data on a screen that mainly related or inspired by real-world actions. It provides us with
the on-screen object that can be manipulated, along with a virtual keyboard which can be
used for text and number input.
10
Objective:-
Diet And Fitness Tracker App
This app is designed to keep track of user’s diet and their calorie intake throughout the
day and to keep track of their fitness by using the basic fitness needs of maintaining their
weight etc.
It has two basic features
1- Calculating daily calorie intake
2- Fit Test
11
MATERIALS AND METHODS
Technology
Android framework
Android is one of the platforms which uses open source technology. It is created by the
collaboration of Google and developed by Open Handset Alliance. It is created with the
purpose of “accelerate innovation in mobile” As we know Android is used on almost 90%
mobile devices with dominance. It is entirely free and open source platform that distinc t
hardware from software that it is running on. It results in support to much more devices and
platforms that it can run on. Also, it gives the possibility of a much more friendlier and
comfortable atmosphere for developers and consumers.
Android is a all in one software package for a mobile devices. Since the start the Android
team offered the development kit (tools and frameworks) for creating applications as fast
and easy to use as possible.
Software Used -
1. Android Studio
2. Intellij IDE
3. Windows 10 Home edition
4. Google Chrome
12
Architectural Design –
13
APK (Android Package Kit)-
Android application are deployed as in the form of application package files that are known
as APK files. These files are container files that contain both Application code, resource
files as well as the application manifest file. These APK files are ZIP files and you can
check the content by extracting it with any decompression tool such as 7zip that brace the
ZIP format.
You may have noticed that the APK files are named in reverse-domain-style this is to dodge
naming collisions, the same naming format can be found in many other places in Android
such as custom permissions and so on, e.g com.lucky.dietapp
14
PROJECT STRUCTURE
JAVA
The java folder contains all the java activity file which is the backend of the code, in this
area of the app all the code necessary for the app is written. This includes MainActivity,
fitTestButton activity, about_us activity etc.
RES
This folder contains all the layout files which includes icons, string files, and the frontend
layout of the app.
Drawable folder contains background image for the app which is “back.jpg”.
Font folder has the font setting for the app. Which is “Droid Serif Bold” and “Varela
Round Regular” for this app.
Layout folder have all the activities in the app, all the pages in the app are called activitie s.
This app contains total of 6 activities.
Mipmap contains icon for the app.
Values folder has all the colors, strings and styles files. Which is explained below
15
RESULTS AND DISCUSSION
Main Activity
The first page of the app is shown below. As soon as the program is compiled and run, The
user is asked if he wants to search a food name to add to calorie calculator or he/she wants
to take the Fit test. On selecting the option the user will be taken to the respective window
and the task will bw performed. The main activity page is shown in fig.4 below.
16
Fit Test Activity
Fit Test activity is second activity in the app. It is desined to keep track of user’s health and
activities by keeping track of their BMI, BMR.
BMI - The BMI is an meathod to measure the
amount of tissue mass ( fat, bone and muscle)
in a human, and thereafter classify that an
individual is either underweight, average
weight, overweight, or obese in view of that
esteem. There are some argumnets relating the
placement of the margin of these categories.
Generally accepted BMI ranges for
underweight: under 18.5 kg/m2, ordinary
weight: 18.5 to 25, overweight: 25 to 30 and
fat: more than 30.
There are 2 formulae used to calculate BMR, in [kcal / 24hrs] for men and women
respectively:
17
Fit Test result Activity –
This activity shows the results for the fit test. This activity uses two fonts “Droid Serif
Bold” and “Varela Round Regular” for the better display of the quantities and is separated
by view activity. This activity is desined to be a user friendly because of the importance it
havs in the app.
Below is a figure showing the actual layout of the activity.
18
Help Activity –
This activity is included in the app so that users can understand the meaning of the various
fitness measures present in the app. The link for this activity is located inside Fit test result
activity as shown below.
19
CONCLUSION AND RECOMMENDATIONS
Our project has created as a working applications which can perform a simple action like
taking user input and displaying their result as expected. This application is fully functio na l
and brings the basic structure which can be implemented in further development of the
application.
The goal of this whole project was to create a user input and output interface which helps
in declining human efforts in making things happen and also making all of us healthier than
yesterday. Also the goal was to create the listing interface, which is used to display different
types of results to the user.
The app which was mentioned before can handle inputs and take the input and result in
another activity by using Application session storage. The layout Fittest has three fields
where the user can enter his/her weight, age and height in order to get their fit test done.
The transfer of the results from one activity to other is handled by Application Session
Storage.
Through this app, we have dreamed the goal for a fit India which can be achieved if all the
citizen of India to take part and help themselves and the nation towards a fitter and a better
society.
This app is recommended for any individual who is trying to make themselves healthie r
and happier.
20
IMPLICATION FOR FUTURE RESEARCH
21
REFERENCES
https://manytools.org/handy/bmr-calculator/
https://en.wikipedia.org/wiki/Basal_metabolic_rate
https://en.wikipedia.org/wiki/Body_mass_index
https://developer.android.com/
https://in.udacity.com/
https://en.wikipedia.org/wiki/Android_(operating_system)
https://www.tutorialspoint.com/android/
https://www.javatpoint.com/android-tutorial
22
ADDITIONAL SCREENSHOTS
Figure 11: About Us Activity Figure 12: Search for Food Activity
23