Android Application on Location sharing and message sender

20
Android Application Development

description

This is the Presentation of android application designed to trace the user location and when he reached his destination automatic message will be send to the person whom user wants to inform that he has reached his destination.

Transcript of Android Application on Location sharing and message sender

Page 1: Android Application on Location sharing and message sender

Android Application Development

Page 2: Android Application on Location sharing and message sender

What is AndroidAndroid is a software platform and operating

system for mobile devicesAndroid is available as open sourceIt allows developers to write managed code

in the Java language, controlling the device via Google-developed Java libraries

Page 3: Android Application on Location sharing and message sender

Android Applications ComponentsAndroid Application

ActivityBroadcast Receiver

ServiceContent Provider

Page 4: Android Application on Location sharing and message sender

ActivityActivity provides the user a

screen/interface to interact with the application

Activities can reuse functionality from other components simply by making a request in the form of an Intent

Activities can be replaced at any time by a new Activity with an equivalent Intent Filter

Page 5: Android Application on Location sharing and message sender

Servicerun in background and has no visual UI best example is music player application

Service

Unbound Bound

Page 6: Android Application on Location sharing and message sender

Broadcast Receiver Receive messages that are broadcasted by

the Android system or other Android applications

Examples of broadcasts initiated by the system

1. warning that the battery is low2. Screen turned off3. Battery is fully charged

Page 7: Android Application on Location sharing and message sender

Content ProvidersFlexible way to make data available across

applicationsAll data base, file System in system storage

can be access or even modify by any application through content provider

For e.g. Read contacts from system

Page 8: Android Application on Location sharing and message sender

Google Services for Android DeveloperGoogle offers a variety of services that help

you build new revenue streams, manage app distribution, track app usage, and enhance your app with features such as maps etc.

There are many services provided by Google such as

1. Google Map 2. Location Service3. Google +

Page 9: Android Application on Location sharing and message sender

Location Tracer and Automatic Message sender Application Features:1) helps android users to get distance and time

required to reach his destination 2) automatic message will be send to the number

set by the user when he reached his destination3) Show your location on Google Map4) Get Route from your source to destination

Page 10: Android Application on Location sharing and message sender

Implementation This Android Application is implemented

using following concepts1) Retrieving current Location at every second2) Retrieving Geo Coordinates of Destination3) Read Contacts4) Send SMS5) Use Google Direction API

Page 11: Android Application on Location sharing and message sender

Retrieve Current Location Current Location is retrieved by two ways:1) GPS Provider2) Network ProviderLocation Manager and Location Listener are

two classes used to get the current location

Page 12: Android Application on Location sharing and message sender

Geo- CoordinatesA geographic coordinate system is a 

coordinate system that enables every location on the Earth to be specified by a set of numbers or letters

A common choice of coordinates is latitude, longitude and elevation.

Page 13: Android Application on Location sharing and message sender

Retrieve Geo Coordinates Geocoder is the class which transform a

street address or description of location to Latitude and Longitude

Geo Coordinates of destination are used to compare with the current location

Page 14: Android Application on Location sharing and message sender

Read ContactsContent Provider is used to access any

database from system Cursor object is used to retrieve contact list.If any person have multiple contact number

then all the contact numbers are displayed in a list

Selected contact number would be set in the Text Field

Page 15: Android Application on Location sharing and message sender

Direction APIThe Google Directions API is a service that

calculates directions between locations using an HTTP request

It returns data in XML formatUse XML Parsing technique to get dataYou can search for directions for several

modes of transportation, include transit, driving, walking or cycling

Page 16: Android Application on Location sharing and message sender

Google Map Android API V2The API is distributed as part of the Google

Play servicesTo access the Google Maps servers with the

Maps API, we have to add a Maps API key to your application

We can obtain a Maps API key from the Google APIs Console by providing our application's signing certificate

Page 17: Android Application on Location sharing and message sender

Screen Shots

Page 18: Android Application on Location sharing and message sender
Page 19: Android Application on Location sharing and message sender
Page 20: Android Application on Location sharing and message sender