an android-based location finder

29
By: Mikias M. Seid

Upload: others

Post on 09-Feb-2022

31 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: An Android-based Location Finder

By: Mikias M. Seid

Page 2: An Android-based Location Finder

 Introduction to Android  Android Architecture  Software Development  Purpose of the project  Location Based Service (LBS)  Android. Location class  Google API and Map View  Demo  Future of the project  Reference  Q&A

Page 3: An Android-based Location Finder

Introduction to Android

What is Android? •  A software platform and operating system for mobile devices

•  It is developed by Google and the Open Handset Alliance (OHA)

•  Based on the Linux kernel (Linux 2.6)

•  Allows developing in Java language

•  Emulator support with some limitations

Page 4: An Android-based Location Finder

Introduction to Android

What is the Open Handset Alliance (OHA)?

•  Consortium of several companies

•  Devoted to advancing open standards for mobile devices

Page 5: An Android-based Location Finder

Android Architecture

Page 6: An Android-based Location Finder

Software Development

Development Requirement?

•  Java

•  XML ( recommended, UI is based on XML)

•  Android SDK

•  Eclipse IDE

Page 7: An Android-based Location Finder

Android SDK

Android SDK •  Class Library

•  Developer Tools •  dx – Dalvik Cross-Assembler •  aapt – Android Asset Packaging Tool •  adb – Android Debug Bridge •  ddms – Dalvik Debug Monitor Service

•  Emulator and System Images

•  Documentation and Sample Code

Page 8: An Android-based Location Finder

Developer Tools

Dalvik •  is developed by Dan Bornstein

•  it is the process virtual machine in Android OS

•  unlike Java VMs, Dalvik is a register-based architecture

Page 9: An Android-based Location Finder

Android SDK Developer Tools

•  Dalvik Cross Assembler (dx ) •  Used for merging and converting java bytecode (*.class) into

one single binary file (*.dex)

•  Android Debug Bridge (adb) •  Set up connections to a real Android device or emulator

•  Dalvik Debug Monitor Service (ddms) •  Provides port forwarding services, screen capture on the device,

thread and heap info, location data spoofing and more

Page 10: An Android-based Location Finder

IDE and tools

Eclipse IDE and Android Development Tools

•  Reduces Development and Testing Time

•  Makes User Interface-Creation easier

•  Makes Application Description Easier

Page 11: An Android-based Location Finder

Application Building Blocks

•  Activity •  is a single screen with a user interface

•  Service •  is a component that runs in the background to perform certain

task

•  Content provider •  manages a shared set of application data. Example: Address

book

•  Intent Receiver •  is a component that responds to system-wide broadcast

Page 12: An Android-based Location Finder

Purpose of the project

•  The main purpose of this project is to exploit Androids Location Based Service by developing an application which:

•  Locate friend in your contacts list on Google Maps

•  Show their distance relative to your current location

•  And update that information in a realistic manner with location changes

Page 13: An Android-based Location Finder

What are the three most important topics in tech?

Location, location and location

Page 14: An Android-based Location Finder
Page 15: An Android-based Location Finder

Location Based Service (LBS)

•  Location Based services are the most rapidly growing and most exciting systems

•  And have a wide application range, for example

•  Social networking •  Location based Advertisement •  Locating persons or objects •  Navigation •  Vehicle tracking service •  Traffic management and etc

Page 16: An Android-based Location Finder

Limitations of LBS

•  Geographic limitation •  Limited to the US and Canada

•  Data limitation •  Location information limited to commercial businesses

•  Performance limitation •  Poor matching between textual geographic location with

interactive maps

Page 17: An Android-based Location Finder

The Limits to Growth of LBS

Page 18: An Android-based Location Finder

Location Based API

Location Based API includes:

•  android. Location

•  com.google.android.map

Location-Based Service

android.location com.google.android.map

Page 19: An Android-based Location Finder

Android. Location

Interfaces •  GpsStatus.Listener

•  Used for receiving notifications when GPS status has changed.

•  GpsStatus.NmeaListener •  Used for receiving NMEA sentences from the GPS.

•  LocationListener •  Used for receiving notifications from the LocationManager when the

location has changed.

Page 20: An Android-based Location Finder

Android. Location

Classes

•  Address •  A class representing an Address, i.e, a set of Strings describing

a location. •  Criteria

•  A class indicating the application criteria for selecting a location provider.

•  Geocoder •  A class for handling geocoding and reverse geocoding.

• GpsSatellite •  This class represents the current state of a GPS satellite.

Page 21: An Android-based Location Finder

Android. Location Classes Contd.

•  GpsStatus •  This class represents the current state of the GPS engine.

•  Location •  A class representing a geographic location sensed at a particular time

(a "fix").

•  LocationManager •  This class provides access to the system location services.

•  LocationProvider •  An abstract super class for location providers.

Page 22: An Android-based Location Finder

Google APIs

•  Google APIs add-on includes •  Maps external library, com.google.android.maps

•  The key class in the maps library is MapView •  It displays a map with data obtained from Google Maps service •  It provides a wrapper around the Google Maps API

Page 23: An Android-based Location Finder

Obtaining a Maps API Key

Page 24: An Android-based Location Finder

Google Maps API

Page 25: An Android-based Location Finder

Google Maps API

Page 26: An Android-based Location Finder

Demo

Page 27: An Android-based Location Finder

Future of the project

•  Adding more functionalities like

•  Deploying it to a real phone •  Calling friends within a certain area range •  Locating where phone calls are coming from •  Locating places like coffee shops and others •  The possibility is limitless ……

Page 28: An Android-based Location Finder

Reference

What is Android <http://developer.android.com/guide/basics/what-is-android.html>

Location Based Services using Android Mobile Operating System <http://www.ijaet.org/media/0002/Location-Based-Services-using-Android-mobile-Operating-System-Copyright-IJAET.pdf>

The-Limits-to-Growth-of-Location-Based-Service <http://www.broadstuff.com/archives/2020-The-Limits-to-Growth-of-Location-Based-Services.html>

Page 29: An Android-based Location Finder

Q&A

Thank you all!!!