Location Aware Devices  Location information can lead to creative applications  GPS hardware  cell tower positioning.

Slides:



Advertisements
Similar presentations
Android Application Development Tutorial. Topics Lecture 4 Overview Overview of Sensors Programming Tutorial 1: Tracking location with GPS and Google.
Advertisements

Bruce Scharlau, University of Aberdeen, 2011
SQLite. Command line sqlite3 The command line sqlite3 is not installed on all devices To install, get sqlite3 from web page, and $ adb push sqlite3 /sdcard/
STRING AN EXAMPLE OF REFERENCE DATA TYPE. 2 Primitive Data Types  The eight Java primitive data types are:  byte  short  int  long  float  double.
Importing GPS Data Lecture 13. EasyGPS  Free software for downloading waypoints  EasyGPS ( EasyGPS  Free software for downloading.
MiniDraw Testing COMP 102 # T1
Introducing to Location in Android LOCATION IS EVERYTHING Kamil Lelonek Kamil Lelonek
Prepared by: Prepared by: Jameela Rabaya Jameela Rabaya Fatima Darawsha Fatima Darawsha.
The Motorola PowerStrike GPS Receiver By Patrick Svatek May 8, 2001 The University of Texas at Austin, Dept. of ASE/EM.
Location & Maps.  Mobile applications can benefit from being location-aware, e.g.,  Routing from a current to a desired location  Searching for stores.
JSR-179 API exploitation and philosophy Francesca Bellanca Paolo Rodolà.
GPS Waypoint Navigation Team M-2: Charles Norman (M2-1) Julio Segundo (M2-2) Nan Li (M2-3) Shanshan Ma (M2-4) Design Manager: Zack Menegakis Presentation.
Cosc 5/4730 GPS/Location Blackberry JSR-179: javax.microedition.location and android.location.
Location Aware Devices (cont’d)  Landmarks and LandmarkStore  ProximityListener.
© 2009 Research In Motion Limited Introduction to GPS and Wi-Fi technology on BlackBerry smartphones.
Android wifi-based localization. Localization types Android allows (location providers) – GPS (GPS_PROVIDER) – Cell tower + wifi (NETWORK_PROVIDER) You.
Location and Maps Content Getting Location Getting Google Map In application Test on Emulator/Device.
Global Positioning System (GPS) Presenters: Dean & Nanci Terencio Phone: Cells: Nanci Dean Feb. 13,
11 Obtaining the User’s Position Dr. Miguel A. Labrador Department of Computer Science & Engineering
Cosc 5/4730 GPS/Location android.location. Simulator notes All the simulators can simulator GPS/location information – Android DDMS commands (geo) to.
CS378 - Mobile Computing Location.
CS378 - Mobile Computing Maps. Using Google Maps Content on using Google Maps inside your app Alternatives: Open Street Maps –
Finding Nearby Wireless Hotspots CSE 403 LCA Presentation Team Members: Chris Scoville Tessa MacDuff Matt Mohebbi Aiman Erbad Khalil El Haitami.
Map Applications.
Android Sensors & Async Callbacks Jules White Bradley Dept. of Electrical and Computer Engineering Virginia Tech
Requirements and Design Analysis Moose Habitat Surveyor (MHS)
Location-Based API 1. 2 Location-Based Services or LBS allow software to obtain the phone's current location. This includes location obtained from the.
Avro Apache Course: Distributed class Student ID: AM Name: Azzaya Galbazar
Location Services: Part 1 (Location and Geocoding)
1 Localization and Sensing Nilanjan Banerjee Mobile Systems Programming (Acknowledgement: Jules White) University of Arkansas Fayetteville, AR
Android, where is my car? Summary. This is the just the summary of topic after it was taught in the lecture class. The LocationSensor component can report.
Location based services
CSS216 MOBILE PROGRAMMING Android, Chapter 8 Book: “Professional Android™ 2 Application Development” by Reto Meier, 2010 by: Andrey Bogdanchikov (
DUE Hello World on the Android Platform.
Android Accessing GPS Ken Nguyen Clayton State University 2012.
1 CMSC 628: Introduction to Mobile Computing Nilanjan Banerjee Introduction to Mobile Computing University of Maryland Baltimore County
1 Cisco Unified Application Environment Developers Conference 2008© 2008 Cisco Systems, Inc. All rights reserved.Cisco Public Introduction to Etch Scott.
14-1 JXTA for J2ME Learning Objectives ● This module will help you... – Learn about the architecture of JXTA for J2ME – Learn the JXTA for J2ME.
Chapter 4: A Paradigm Program structure Connecting to the Java world Types Access modifiers Lifetime modifiers.
13-1 Monitoring and Metering Learning Objectives ● This module will help you... – Understand the JXTA monitoring and metering functionality – Gain.
Location. GPS Global Positioning System – At least 4 satellites typically used 3 required extra for error detection and altitude typically accurate within.
Maps Dr. David Janzen Except as otherwise noted, the content of this presentation is licensed under the Creative Commons Attribution 2.5 License.
Cellphone Classes Ven Tadipatri, Matt Hatoun, Jennifer Wong, Michael Leen, Syung Youn Nam.
PRESENTATION DAY Group ID: gp09-cmg Speaker: Matthew Albers RFID APPLICATION DEVELOPMENT SUITE.
Sensors – Part 2 SE 395/595. Location in Android LocationManager class – Configure providers and their listeners LocationListener class – Handles update.
A: A: double “4” A: “34” 4.
The Weekend Navigator Part II Copyright 2008 Coast Guard Auxiliary Association, Inc.
Project IIa GPS Jeff Houston Jeff Filson Tim Culbreth Jennifer Martin.
SourceAnatomy1 Java Source Anatomy Barb Ericson Georgia Institute of Technology July 2008.
Cosc 4735 LocationAware API. Previous on … Before we looked at GPS location. – d-gpslocation.pptx
Air Traffic Simulation Sam Eberspacher. What is it? Simulation of air traffic over the United States Uses a sample of 51 major airports to simulate Uses.
Location Based Services. Android location APIs make it easy for you to build location-aware applications, without needing to focus on the details of the.
GEOGRAPHY DATATYPES in SQL Server by jared nielsen linkedin.com/nielsendata.
Phonegap Bridge –Geolocation and Google maps CIS 136 Building Mobile Apps 1.
CS371m - Mobile Computing Maps. Using Google Maps Content on using Google Maps inside your app Alternatives Exist: – Open Street Maps –
SESSION 1 Introduction in Java. Objectives Introduce classes and objects Starting with Java Introduce JDK Writing a simple Java program Using comments.
1. 2 Android location services Determining a device’s current location Tracking device movements Proximity alerts.
CS499 – Mobile Application Development Fall 2013 Location & Maps.
Location Services: Part 1 (Location and Geocoding)
Tracking device movements
Designing Apps Using The WebView Control
Android Location Based Services
Geolocation using Google maps
Sensors, maps and fragments:
null, true, and false are also reserved.
Proposed Solution To Parts Of
Geolocation using Google maps
Using java libraries CGS3416 spring 2019.
Maps, Geocoding, and Location-Based Services.
Geolocation using Google maps
Presentation transcript:

Location Aware Devices  Location information can lead to creative applications  GPS hardware  cell tower positioning

Location Interface  Location hardware and J2ME interface  Obtaining a location provider Criteria c = new Criteria(); LocationProvider lp = LocationProvider.getInstance(c); Location l = lp.getLocation();

Location Interface  Location hardware and J2ME interface  Obtaining a location provider Criteria c = new Criteria(); LocationProvider lp = LocationProvider.getInstance(c); Location l = lp.getLocation();  Criteria – specify requirements for  power consumption  accuracy  altitude  cost allowed  (could be null)

Selected API  Criteria – specify requirements for power consumption accuracy altitude cost allowed boolean isValid() AddressInfo getAddressInfo() AddressInfo is a collection of fields (street, city, zip,...) AddressInfo interface:int getField() void setField(int field, String value) QualifiedCoordinates getQualifiedCoordinates()  Qualified Coordinates double getLatitude() [-90; 90] double getLongitude()[-180; 180) float getAltitude() float distance(Coordinate c)geodesic distance to given coordinates

Selected API  Location boolean isValid() AddressInfo getAddressInfo() AddressInfo is a collection of fields (street, city, zip,...) AddressInfo interface:int getField() void setField(int field, String value) QualifiedCoordinates getQualifiedCoordinates()  Qualified Coordinates double getLatitude() [-90; 90] double getLongitude()[-180; 180) float getAltitude() float distance(Coordinate c)geodesic distance to given coordinates

Selected API  LocationProvider LocationProvider getInstance() Location getLastKnownLocation() void setLocationListener(LocationListener listener, int interval, int timeout, int maxage) the attached listener will be called at the defined interval each update triggered within [interval, interval+timeout]  LocationListener interface – must implement the following methods void locationUpdated(LocationProvider provider, Location location) called periodically by the provider with the new location void providerStateChanged(LocationProvider provider, int newState) newState: AVAILABLE, OUT_OF_SERVICE, TEMPORARILY_UNAVAILABLE

Sample MIDlet ( From Knudsen ) void run() {// done in separate thread Criteria c = new Criteria(); LocationProvider provider = LocationProvider.getInstance(c); if (provider == null) {... } Location location = provider.getLocation(10); QualifiedCoordinates qc = location.getQualifiedCoordinates(); double lat = qc.getLatitude(); double lon = qc.getLongitude(); LocationListener listener = this; // The MIDlet provider.setLocationListener(listener, 4, 1, 1); } // MIDlet implements LocationListener public void locationUpdated(LocationProvider provider, Location location) { QualifiedCoordinates qc = location.getQualifiedCoordinates(); double lat = qc.getLatitude(); double lon = qc.getLongitude(); }

Simulating Device Location  WTK makes it possible to predefine a path of travel points  XML formatted description <waypoint time="0" latitude="90" longitude="105"/> <waypoint time="10000" latitude="90" longitude="82"/> <waypoint time="20000" latitude="90" longitude="59"/>

Simulating Device Location  Loading the path XML file while MIDlet is running XML file