Professional Documents
Culture Documents
Bscs Mid-Term Project Proposal Android Application, Where Is My Car?
Bscs Mid-Term Project Proposal Android Application, Where Is My Car?
Session: 2018-2022
Reg. No:
183232
Name:
Muhammad Ahmad Ali
Degree:
BSCS
SUPERVISED BY:
2
In the name of Allah Most Gracious Most Merciful
3
Declaration
This thesis is a presentation of my original research work. Wherever contributions of others are involved,
every effort is made to indicate this clearly, with due reference to the literature, and acknowledgement of
collaborative research and discussions. I also declare that this work is the result of my own investigations,
except where identified by references and free from plagiarism of the work of others.
Signature: ………….…….
Muhammad Ahmad Ali
Date: ………………..…....
4
DEPARTMENT OF COMPUTER SCIENCE
AIR UNIVERSITY MULTAN CAMPUS
CERTIFICATE
The undersigned hereby certify that they have read and recommend the thesis entitled “Thesis Title”
by Student Name for the degree of Bachelor of Studies in Computer Science.
_________________________________
Supervisor Name (AUMC), Project Supervisor
_________________________________
Co Supervisor Name (if any), Co-supervisor
_________________________________
Committee Member Name ( ), Committee Member
_________________________________
Committee Member Name ( ), Committee Member
_________________________________
Chairperson Name (AUMC), Chairperson of the Department
5
PROJECT BRIEF
6
Acknowledgments
First of all, I would like to express my gratitude towards my project supervisor Engr. Ahmad Zesshan for his
support and guidance throughout the project. Several thanks to my friends for his or her glorious co-
operation, inspirations, and supports throughout this study. This two year expertise with all you guys are
remembered as necessary memory on behalf of me to face the new chapter of the life as a computer
scientist. I acknowledge my sincere financial obligation and feeling to my oldsters for his or her love,
dream, and sacrifice throughout my life. I’m extremely glad for his or her sacrifice, patience, and
understanding that were inevitable to create this work doable.
Finally, I’d wish to thanks somebody that contributes to my final year project directly or indirectly. I’d wish
to acknowledge their comments and suggestions that were crucial for the self-made completion of this
study.
7
Dedication
First of all, I would like to give thanks to God because without His will I could not be able to do this project.
I dedicate this dissertation to my beloved parents and my family (Fahad, Asad and Saad) and teachers
because without their support, this wouldn’t have been possible. I hope this achievement will complete the
dream they have for me since they choose to give me the best they have.
8
Table of Contents
Chapter 1 : Introduction...............................................................................................................................12
1.1 Problem..............................................................................................................................................................12
1.2 Instruction.........................................................................................................................................................12
1.2.1 MIT App Inventor.....................................................................................................................................12
Chapter 2: Literature Review.......................................................................................................................13
9
Figure
Figure 1.1: Application....................................................................................................................................12
Figure 1.2: Mit app Inventor............................................................................................................................12
Figure 2.1: structure of GSM...........................................................................................................................13
Figure 2.2: structure of Android platform.......................................................................................................14
Figure 3.1: Screen1..........................................................................................................................................17
Figure 3.2: Screen2..........................................................................................................................................18
Table 3.1: components of Application.............................................................................................................19
Table 3.2:ActivityStarter’s properties are only partially shown in the user interface.....................................20
Table 3.3:Blocks for getting location reading and displaying in labels in the app's UI..................................21
Figure 3.3: Remember Button.........................................................................................................................21
Table 3.4. Blocks for recording and displaying the current location...............................................................22
Figure 3.4: Direction Button............................................................................................................................23
Figure 3.5: Initializing screen2........................................................................................................................24
Figure 3.6: full application blocks...................................................................................................................24
Figure 4.1: testing results.................................................................................................................................25
10
Table
Table 3.1: components of Application.............................................................................................................19
Table 3.2:ActivityStarter’s properties are only partially shown in the user interface.....................................20
Table 3.3:Blocks for getting location reading and displaying in labels in the app's UI..................................21
Table 3.4. Blocks for recording and displaying the current location...............................................................22
11
Chapter 1: Introduction
1.1 Problem
You parked somewhere near the stadium, but when the concert Figure 1.1: Application
ends you don’t have a clue where the car is. The friends you came with
are equally as clueless. Fortunately you haven’t lost your android phone that never forgets anything, and you
remember you have the hot new application, Android, Where’s My Car? Design an application on which
upon clicking, a button when you park your car, and the android uses its location sensor to record the car’s
GPS coordinates and Address. Later, when you reopen the application, it shows you a Map from where you
are to the remembered location.
1.2 Instruction
Design the application using MIT App Inventor.
12
by constructionist learning theories, which emphasize that programming can be a vehicle for engaging
powerful ideas through active learning. As such, it is part of an ongoing movement in computers and
education that began with the work of Seymour Papert and the MIT Logo Group in the 1960s, and has also
manifested itself with Mitchel Resnick’s work on Lego Mindstorms and Star Logo.
13
Chapter 2: Literature Review
2.1 Technical background
2.1.1 Global Positioning System (GPS)
GPS is a system composed of a network of 24 satellites of the US. The satellites periodically emit
radio signal to GPS receivers. The GPS receiver receives the signal from at least three satellites using
triangular technique to compute two-dimensions, or four satellites to compute three dimensions (latitude,
longitude and altitude).
14
2.1.5 General Packet Radio Service (GPRS)
GPRS was originally standardized by European telecommunication standard Institute (ETSI).
Subsequently the 3GPP developed third-generation (3G) UMTS standards followed by fourth- generation
(4G) LTE (long term evolution) advanced standards, which do not form part of the ETSI GSM standard.
2.1.6 Android
Automated Numeration of Data Realized by Optimization Image Detection is a mobile operating
system (OS) currently developed by Google, based on the (Linux kernel) and designed primarily for
touchscreen mobile devices such as smartphones and tablets.
The low-cost vehicle tracking and monitoring system is presented to track and monitor vehicle status
that are used by certain party for particular purposes, and to provide location and time information anywhere
on earth. The proposed system consists of in-vehicle GPS receiver, GSM modems and microcontroller GPS
15
module shield is used to track and locate the position of the vehicle, and the GSM for sending warning
message to the owner of the vehicle and embedded controller. Google Maps used to show the current
location of the vehicle and usually locate device position with the help of network. the client just send one
message to the vehicle and the vehicle’s mobile will send you the current location of vehicle in the form of
web link and user has to click on a link and that link goes to Google map and will show the current location
of vehicle. Although using SMS technology which it’s convenient way of transferring and receiving data,
and it is inexpensive technology, but the web service is not available at the whole time, so an android phone
application can be useful for receiving data without internet.
The system presents a GPS and GSM based vehicle tracking system that provides the owner with
full security and track of the asset. GSM/GPS technology used for security purposes, whereas the theft
prevention system provided by Android application. The aim proposed is to implement miniature model by
using a single chip microcontroller in the vehicle. The system embedded in the vehicle, consist of a GSM
modem, GPS receiver, control relay, current sensor and Microcontroller
The system allows users to track the position, speed, water level, engine level and different
parameters. The owner just has to send an SMS and the tracking system installed inside the vehicle will
respond within a minute. User can stop the two wheeler when the vehicle under theft by android application.
In this system GPS, GSM is interfaced with atmega162 v microcontroller and 16x4 LCD display is used to
show some message to the user. The web to track the vehicle on internet, and an android application for
smart phone to track the vehicles on Google Maps without need of internet. That system shows and
introduced the traditional existing tracking systems in terms of cost, services, reliability and control.
17
Chapter 3: Methodology and Implementation
3.1 Designing the Components
The user interface for "Android, Where's My Car?" consists of two screens named as screen1 and
screen2. Screen1 consists of a button “Start”, label “copyright Ahmad” and a background image. Button and
label are place in verticalArrangement1. The image and verticalArrangement1 is place inside the
horizontalArrangement1.
Screen2 consists of labels to show your current and remembered locations, and buttons to record a
location and show directions to it. You'll need some labels that just show static text; for
example, GPSLabel will provide the text "GPS:" that appears in the user interface. Other labels, such
as CurrentLatLabel, will display data from the location sensor. For these labels, you'll provide a default
value(0,0), which will change as the GPS acquires location information. You'll also need three non-visible
components: a LocationSensor for obtaining the current location, a TinyDB for storing locations
persistently, and an ActivityStarter for launching Google Maps to get directions between the current and
stored locations.
18
Figure 3.2: Screen2
19
Button Basic RememberButton Click to record
current location.
Label Basic HorizontalArrange Arrange remembered
ment2 address info
Label Basic RememberedAddre Displays
ssLabel text,
“Remembered
Place”
Label Basic RememberedAddre Displays dynamic data,
ssDataLabel the remembered address
Label Basic RememberedGPSLa bel Displays text, “GPS”
Property Value
Action android.intent.action.VIEW
20
ActivityClass com.google.android.maps.MapsActivity
ActivityPackage com.google.android.apps.maps
Table 3.2:ActivityStarter’s properties are only partially shown in the user interface
21
value latitude My Definitions Plug into set block above
Table 3.3:Blocks for getting location reading and displaying in labels in the app's UI
22
You can set the property to any URL that you might enter directly in a browser. If you want to explore this,
open maps.google.com in your browser and ask for directions between, say, San Francisco and Oakland.
When they appear, click the link button in the top-right of the map and check URL that appears. This is the
kind of URL you need to build in your app. The difference for your app is that the directions map you’ll
create will be from a specific set of GPS co-ordinates to another (not city to city). The URL needs to be in
the following form:
http:/maps.google.com/maps?saddr=37.82557,-122.47898&daddr=37.81079,- 122.47710
Try typing that URL into a browser: can you tell which famous landmark it directs you across? For
this app, you need to build the URL and set its source address (saddr) and destination address (daddr)
parameters dynamically. You’ve put text together before in earlier chapters using make text; we’ll do that
here as well, plugging in the GPS data for the remembered and current place. You’ll put the URL you build
in as the ActivityStarter.DataUri property, then call ActiivtyStarter.StartActivity.
Table 3.4. Blocks for recording and displaying the current location
set ActivityStarter.DataUri to ActivityStarter Set the URL for the map you
want to bring up
23
long
24
Figure 3.5: Initializing screen2
25
Chapter 4: Results and Conclusions
4.1 Testing and results:
I try this application with my car and it’s a successful experiment a few images are given below:
Here we can see the location and the details in the form of longitude and latitude on the screen. The most
recent saved location is shown in the figure. This location details save in the database. And when we install
and open the application it needs permissions to access the GPS sensor for location.
26
References:
https://www.cs.usfca.edu/~wolber/appinventor/book2011/
https://appinventor.mit.edu/explore/ai2/tutorials
https://www.researchgate.net/figure/Fig-12-Working-of-MIT-APP-Inventor-App-Inventor-involves-
three-aspects-i-App_fig7_325567957
27
28
29