Mobile Application Development Google Maps Android API v2



Similar documents
Operational Decision Manager Worklight Integration

Android app development course

Programming Mobile Applications with Android

Reef Explorer User Guide

Programming with Android: Localization and Google Map Services. Dipartimento di Scienze dell Informazione Università di Bologna

ANDROID ALERT APP (SHOP SALE)

DYNAMIC GOOGLE REMOTE DATA COLLECTION

Application Development

TUTORIAL. BUILDING A SIMPLE MAPPING APPLICATION

Measuring The End-to-End Value Of Your App. Neil Rhodes: Tech Lead, Mobile Analytics Nick Mihailovski: Developer Programs Engineer

Software Development Kit for ios and Android

AdFalcon Android SDK Developer's Guide. AdFalcon Mobile Ad Network Product of Noqoush Mobile Media Group

Turnout Response System (TRS) Version 1.8

Mobile Data Collection with Avenza PDF Maps

USER MANUAL. (for version 1.53)

... Introduction Acknowledgments... 19

Dave Haseman, Ross. Hightower. Mobile Development for SAP* ^>. Galileo Press. Bonn. Boston

Specialized Android APP Development Program with Java (SAADPJ) Duration 2 months

Salesforce Mobile Push Notifications Implementation Guide

Spring Design ScreenShare Service SDK Instructions

To Install EdiView IP camera utility on Android device, follow the following instructions:

CS 403X Mobile and Ubiquitous Computing Lecture 6: Maps, Sensors, Widget Catalog and Presentations Emmanuel Agu

[PACKTl. Flash Development for Android Cookbook. Flash, Flex, and AIR. Joseph Labrecque. Over 90 recipes to build exciting Android applications with

KML EXPORT & 3D CONSTRUCTION POINT TIP SHEET FOR iwitness TM V2

User Manual GPS Travelling System (Produced By: Bonrix Software System)

Running a Program on an AVD

TrustDefender Mobile Technical Brief

CSE476 Mobile Application Development. Yard. Doç. Dr. Tacha Serif Department of Computer Engineering Yeditepe University

Real time vehicle tracking and driver behaviour monitoring using cellular handset based accelerometer and GPS data

Adding Panoramas to Google Maps Using Ajax

Introduction to NaviGenie SDK Client API for Android

Introduction to HP ArcSight ESM Web Services APIs

Basic Android Setup Windows Version

ANDROID CMS for Android phones user's manual

Motion & The Global Positioning System (GPS)

Using Google Earth for Environmental Science Research

Google Android Syllabus

How To Write A File Station In Android.Com (For Free) On A Microsoft Macbook Or Ipad (For A Limited Time) On An Ubuntu 8.1 (For Ubuntu) On Your Computer Or Ipa (For

INTERMEDIATE ANDROID DEVELOPMENT Course Syllabus

Developer Tutorial Version 1. 0 February 2015

1. Introduction to Android

HP AppPulse Mobile. Adding HP AppPulse Mobile to Your Android App

WebView addjavascriptinterface Remote Code Execution 23/09/2013

GCM for Android Setup Guide

Pakhtunkhwa, Pakistan 1 salman@awkum.edu.pk

Learning about GPS and GIS

Salesforce Mobile Push Notifications Implementation Guide

A Short Introduction to Android

Tutorial on OpenCV for Android Setup

Programming with Android: Geolocalization. Dipartimento di Scienze dell Informazione Università di Bologna

QUALIFICATIONS PACK - OCCUPATIONAL STANDARDS FOR TELECOM INDUSTRY. SECTOR:TELECOM SUB-SECTOR: Handset (Terminal Applications) REFERENCE ID: TEL/Q2300

By: KPIT Technologies Limited. NHAI Portal Guide

AT&T Mobile Barcode Services

PDF MAPS FOR SMARTPHONES AND TABLETS

TaleBlazer Documentation

Content. Before you begin. Using the QGround Control Software. General information. Compatibility. settings of a waypoint

Studying Topography, Orographic Rainfall, and Ecosystems (STORE)

Mobile GIS Guide. About The Author. Getting your mobile GIS project off the ground

Development and Implementation of Location Based Native Mobile Application

Android Application Development

ios SDK possibilities & limitations

Workshop on Android App Development Fundamentals

GEM global earthquake model. User guide: Android mobile tool for field data collection. Rosser, J., J.G. Morley, A. Vicini. Data capture tools

RESCO MOBILE CRM QUICK GUIDE. for MS Dynamics CRM. ios (ipad & iphone) Android phones & tablets

ADITION Android Ad SDK Integration Guide for App Developers

ATLAS CARTOGRAPHIC TECHNOLOGIES LTD. (ATLASCT) Dedicated Geo-Server. Business Proposal

Building Mobile Applications Creating ios applications with jquery Mobile, PhoneGap, and Drupal 7

GEM90 TrackMe GPS Tracking Application

InsideView Lead Enrich Setup Guide for Marketo

OPC UA App development for Android

Taxi Service Design Description

NetVu. App for Android TM. Installation & Usage Guide

Implementation of a system of the mobile terminal position tracking using Google Maps


WINDOWS PHONE CMS for WINDOWS PHONE phones user's manual

Location Analytics Integrating GIS technologies with SAP Business intelligence,

ID TECH UniMag Android SDK User Manual

With a single download, the ADT Bundle includes everything you need to begin developing apps:

Mobile application testing is a process by which application software developed for hand held mobile devices is tested for its functionality,

Mocean Android SDK Developer Guide

OpenScape Web Collaboration for Microsoft Windows OS

PubMatic Android SDK. Developer Guide. For Android SDK Version 4.3.5

Implementing a Web-based Transportation Data Management System

Graduate presentation for CSCI By Janakiram Vantipalli ( Janakiram.vantipalli@colorado.edu )

HybriDroid: Analysis Framework for Android Hybrid Applications

Exploring GIS Integration Options for SAP BusinessObjects

Mobile Application GPS-Based

XML Processing and Web Services. Chapter 17

Web Designing with UI Designing

3 Reasons Xamarin is Best for Mobile App Development

INTRODUCTION TO ANDROID CSCI 4448/5448: OBJECT-ORIENTED ANALYSIS & DESIGN LECTURE 11 02/15/2011

Transcription:

Mobile Application Development Google Maps Android API v2 Waterford Institute of Technology November 5, 2014 John Fitzgerald Waterford Institute of Technology, Mobile Application Development Google Maps Android API v2 1/15

API features Google Maps Android API Embed & display map Access Google Map servers Download map data Add markers, polygons, overlays Change zoom level Determine geolocation Select map type (normal, hybrid... ) Waterford Institute of Technology, Mobile Application Development Google Maps Android API v2 2/15

Preparatory work Google Play Services Install via Android SDK Manager Import to MyRent workspace Reference in manifest file Reference in MyRent properties Waterford Institute of Technology, Mobile Application Development Google Maps Android API v2 3/15

Maps API key Generating & using key Each app requires key Key obtainable at Google API console Must be registered user Generate key Add key to manifest Switch on API v2 in console Waterford Institute of Technology, Mobile Application Development Google Maps Android API v2 4/15

Geolocation LatLng stores map data Units are degrees Ranges: Longitude: 0 to +/- 180 Latitude: 0 to +/- 90 One degree (metres) latitude approx 111 longitude same at equator zero at poles Accuracy decimal places: Four: 11 m (Garmin 15 m) Six: 11 cm Seven: 11 mm Waterford Institute of Technology, Mobile Application Development Google Maps Android API v2 5/15

Helpers Data input and manipulation Geolocation data input as String Necessary convert to & from Android LatLng public static LatLng latlng(context context, String geolocation) { String[] g = geolocation.split(","); return new LatLng(Double.parseDouble(g[0]), Double.parseDouble(g[1])); } public static String latlng(latlng geo) { return String.format("%.6f", geo.latitude) + ", " + String.format("%.6f", % geo.longitude); } Waterford Institute of Technology, Mobile Application Development Google Maps Android API v2 6/15

Modify manifest file Add permissions Add API key Waterford Institute of Technology, Mobile Application Development Google Maps Android API v2 7/15

Fields added to Waterford Institute of Technology, Mobile Application Development Google Maps Android API v2 8/15

Initialize map fragment in onactivitycreated Waterford Institute of Technology, Mobile Application Development Google Maps Android API v2 9/15

Implement interfaces Waterford Institute of Technology, Mobile Application Development Google Maps Android API v2 10/15

OnMarkerDragListener Three methods to implement Fully implement only onmarkerdragend Waterford Institute of Technology, Mobile Application Development Google Maps Android API v2 11/15

OnCameraChangeListener Triggered by pan, zoom... Waterford Institute of Technology, Mobile Application Development Google Maps Android API v2 12/15

Initialize Map when fragment starts Invoke in onstart Register marker & camera listeners Set map type (e.g. Hybrid, Terrain) Display map Waterford Institute of Technology, Mobile Application Development Google Maps Android API v2 13/15

Update Map When geolocation changed manually (aftertextchanged) Boolean flag used to distinguish manual geolocation changes and those caused by dragging marker. Waterford Institute of Technology, Mobile Application Development Google Maps Android API v2 14/15

Geolodation data input Validation introduced in MapHelper.latlng Disallows invalid geolocation try-catch block used Waterford Institute of Technology, Mobile Application Development Google Maps Android API v2 15/15