LOCATION API AND GOOGLE MAP NAVIGATION ON ANDROID OPERATING SYSTEM
PRESENTED BY: Naag Bharath S. [1CD07EC025] Rakesh Kumar Singh [1CD07EC041] Shailendra Kumar Rajput [1CD07EC049]
To build a mobile application based on google maps. To find the current location of user based on GPS.
WHAT IS NAVIGATION?
Monitoring Controlling Locating navigators location
WHAT IS GPS?
Most precise navigation system. Positioning with global coverage. Precise time reference.
WHY GPS??
Dead reckoning. Piloting. Inertial navigation. Electronic navigation.
BASIC CONCEPTS
Latitude. Longitude.
GPS WORKING
Signals. Timing & Correction. Mapping.
Three Segments of the GPS
Space Segment
User Segment Control Segment Ground Antennas
Master Station
Monitor Stations
Four Primary Functions of GPS
Position and coordinates.
The distance and direction between any two waypoints, or a position and a waypoint. Travel progress reports. Accurate time measurement.
Position is Based on Time
Signal leaves satellite at time T
T
Signal is picked up by the receiver at time T + 3
T+3
Distance between satellite and receiver = 3 times the speed of light
Introduction to Android
Definition- Android is a software platform and operating
system for mobile devices, based on the Linux kernel. It is a software stack/collection of packages that includes: 1. An OS- Linux Kernel 2. Middleware- Libraries and Application Framework 3. Key Apps It allows developers to write managed code in the Java language, controlling the device via Google-developed Java libraries.
Why Android?
Android can Run Multiple Apps at the Same Time Android Gives You Better Notifications Android Lets You Choose Your Hardware Android Lets You Change Your Faster Android Lets You Install Custom ROMs
Android Architecture
Anatomy of an Android Application
1. 2. 3. 4. Activities Services Broadcast and Intent Receivers Content Providers
JAVA ECLIPSE SDK TOOL ADT PLUGIN
Secured Rich Functionality
Streamlines Java Development Separates areas of concern
Includes sample projects with source code Emulator and required libraries
Powerful, integrated environment Creates application user interface Export .apk file to distribute applications
Building & Running Android Project Key Generation Android Virtual Device
CREATING ANDROID PROJECT
Enter
Project Name Application Name Package Name Activity Name Target Name ( Platform 1.5 )
KEY GENERATION
Copy debug.keystore Open command window and navigate to bin folder in java Execute the syntax to generate MD5 fingerprint
Copy MD5 fingerprint to Map API key signup page Get the Google Map key
ANDROID VIRTUAL DEVICE (AVD)
Defines system image and device settings Make sure that version of Google APIs selected for AVD and Build Target is same
Bare Minimum Google Map Change Map view and Zoom level GPS location Mapping Find address for GPS location Location Marker
BARE MINIMUM GOOGLE MAP
Class should extend MapActivity class Satellite view of Earth
CHANGE MAP VIEW AND ZOOM LEVEL
MapView class has an in-built method setBuiltInZoomControls Zoom controls will become enable once we will touch/click the map view Traffic or Street view in maps
ADD GPS LOCATION MAPPING
Periodical updates about the location of the device Android provides location based services through LocationManager class Convert Geopoints to integers
Find address for GPS location
Finds information about an address if we know its latitude and longitude Pass the point as a parameter
ADD A LOCATION MARKER
For frequent reference of a location Add a drawable resource to the project
With this application it is very simple to obtain current position. Easier to navigate through various routes to a location.