AnDroid GoogleMaps API

Slides:



Advertisements
Similar presentations
Google Series Part 1: gmail Part 2: maps Part 3: talk Part 4: earth Part 5: books Part 6: picasa Part 7: sites Part x: ?
Advertisements

VIP Smartphone Team – Ahmad, Din, Vinayak Car Locator App Fall 2010 VIP Smartphone Team Ahmad, Din, Vinayak.
Cosc 5/4730 Input Keyboard, touch, and Accelerometer.
Processing Processing is a simple programming environment that was created to make it easier to develop visually oriented applications with an emphasis.
Google Android Map API Presentation 13/03/2008. Map API – Overview (1) Map rendering facility on Android device Similar to Google Earth Integrate map.
MAPPING TEAM 2 Sara DuPont & Taylor Graves CSCI 110 Web-Based Services Project 4/18/08 vs.
COMS E6125 WHIM Prof. Gail Kaiser Presented by Shuai Yue (sy2342)
Using Arc Reader to Locate 12-Digit HUCs 1. Contents Chapter 1: Downloading and Installing ArcReader and Maps: Slide 3 Chapter 2: Locating the 12-Digit.
Bonrix Track & Trace System A GPS Based Vehicle Tracing System (SMS, GPRS/3G, Offline) Bonrix Software Systems Ahmedabad (INDIA) Website:
DireXions – Mashup your Application Mashup your Application Presented by: Jane Raymond.
Microsoft Visual Basic 2012 CHAPTER TWELVE (ENRICHMENT CHAPTER) Windows Store Apps.
PROG Mobile Java Application Development PROG Mobile Java Application Development Event Handling Creating Menus.
Chapter 5: Investigate! Lists, Arrays, and Web Browsers.
Welcome to DEP’s GIS Workshop Series Workshop 6 Using the ArcMap Pictometry Extension 1.
Social network Twitter Hashtag: #m2eu #android Personal Israel Ferrer –
Location based services
INTRODUCTION TO HTML5 Geolocation. Display a Specific Location with Google Maps  You can use the Google Maps API to display a custom map on your own.
Android Boot Camp for Developers Using Java, Comprehensive: A Guide to Creating Your First Android Apps Chapter 5: Investigate! Android Lists, Arrays,
APPX Conference Welcome! Welcome! Agenda – Friday AM  Redmine  Customer/VAR Presentations Mapping customers in Google Earth Mapping customers.
CS378 - Mobile Computing Intents. Allow us to use applications and components that are part of Android System – start activities – start services – deliver.
© 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Android Boot Camp.
1 Introduction To Geographical Data and TEISS Maps Angelique Luedeker, ITEP/TAMS Center.
Maps. Google Earth is a great resource, but is often blocked by school districts because of its size. Google maps and Bing maps share many of the features.
Highly Confidential – for UCRE Affiliate Use Only 2015 Regional Training Embedding Maps into your listings on your United Country office website.
Google Plus (+) Instant Upload In this section you will learn: How to Enable or Disable the Instant Upload feature for your mobile phone How to manage.
FriendFinder Location-aware social networking on mobile phones.
Mapping local community assets online Read this if you want to learn how to: 1)Create online maps of local community assets using Google Maps 2)Allow other.
1 Introduction To Geographical Data and TEISS Maps Angelique Luedeker, ITEP/TAMS Center.
Part 1 Working with Devices in the CQ Lab. Agenda 2 How to select a device and reserve it. Basic device operations inside the Lab Other features to get.
1 What is Google Maps? maps.google.com maps.google.com free, online map from Google accessible through web browser or as an app for mobile devices step-by-step.
Pervasive Radar Social Collaborative Augmented Reality Tool Presented By: Muthanna Abdulhussein M7012 Pervasive Computing Final Project Presentation.
Gayatri Global Services Get More Customers Automate your business Kolhapur Office 2985, A Ward, Babujamal Road, Near Mahalaxmi Temple, Kolhapur
Chapter 5: Investigate! Lists, Arrays, and Web Browsers.
1. 2 Android location services Determining a device’s current location Tracking device movements Proximity alerts.
Reducing Your Carbon Footprint, One Android App at a Time Doug Burkhalter Chris Truitt.
Google Maps API. Contents: 1. Google Maps API Key 2. Create a Basic Google Map 3. Google Maps Overlays 4. Google Maps Events 5. Google Maps Controls 6.
Advance Computer Programming Market for Java ME The Java ME Platform – Java 2 Micro Edition (J2ME) combines a resource- constrained JVM and a set of Java.
CS499 – Mobile Application Development Fall 2013 Location & Maps.
CS371m - Mobile Computing Intents 1. Allow us to use applications and components that are already part of Android System – start activities – start services.
Office 2016 and Windows 10: Essential Concepts and Skills
Testing Native Mobile Apps
Weebly Elements, Continued
Chapter 1 Editing a Photo
Android Application Maps 1.
Tracking device movements
Geographic Search & Display
TITLE-: SEARCH FOR ANY LOCATION USING GOOGLE MAPS
What this activity will show you
District And Club database
Matthew Przyborski Sam Moore GEO244 April 27, 2017
Mobile Navigation Control for Planetary Web Portals Team Members: John Calilung, Miguel Martinez, Frank Navarrete, Kevin Parton, Max Ru, Catherine Suh.
Tracking and Booking Taxi
Geolocation using Google maps
Sensors, maps and fragments:
Lesson 1: Buttons and Events – 12/18
Google Maps Tutorials Android Studio. About Google map Google Maps is a web mapping service developed by Google. Google Maps began as a C++ desktop program.
Exploring the Basics of Windows XP
Chapter 1 Editing a Photo
Iteration 1 Presentation
Google Maps: A Short How-to
McKesson Radiology Clinical Reference Viewer (CRV)
Google Photos: How to Create Animations
Geolocation using Google maps
Find your friend – An Android application
Chapter 2 Creating a Research Paper with References and Sources
Introduction to AppInventor
Coordinates and Projections
Next Gen GUI Concept Aaron Cardenas, 21/10/2008.
Shelly Cashman: Microsoft Windows 10
Geolocation using Google maps
Presentation transcript:

AnDroid GoogleMaps API

Agenda Maps API Some Examples Classes Example Application MapActivity MapView MapController Overlay MyLocationOverlay OverlayController Point TouchGestureDetector TrackballGestureDetector Example Application

Maps API Optional Functionality Not necessary May not be supported Android is an open cell phone platform Google software is not a device requirement Functionality Google Maps is a good example of the Core Features Some features are specific to mobile devices GPS location services not necessary, unlike the activity and the intent APIs. handset may not support it. This API is a Google API, and since Android is an open cell phone platform, there is no requirement for the device to include any Google software. Google Maps can be accessed online maps.google.com to view the basic functionality of this API Most of the features provided with Google maps for desktop web applications are also available for the mobile version. It also includes extra functionality that is specific to mobile devices such as GPS location services

Some Examples WikiMapia Panoramio Mashups Google Calendar mashed with Google Maps Trulia (Real estate website) WikiMapia combines Google maps and a wiki allowing users to add information about any place on earth. The idea is that of “describing the whole planet Earth”. Anyone can contribute since it is a wiki Panoramio (in picture) Similar to wikimapia; people put and share photos of places they’ve visited, placing them in the location on the map. Mash up examples Google Calendar + Google maps = select location on the map and add a calendar with events taking place at the location. (e.g.. At a nightclubs location one can add events that will take place there) Trulia It is a real estate website uses data from their site and mashes with Google maps. Anything that has anything to do with location is good for a mash up with the Google maps API.

Classes MapActivity MapView Base class Application extends MapActivity Provides basic functionalities such as lifecycle management MapView Extends the View class Displays map Provides basic functionality MapActivity = base class of any activity using Maps API. Therefore second point. Third point means users don’t need to provide those functionalities. The View class is used to provide the user interface. A View could be a textbox, menu items or as in this case the container of the map. basic functionality = displaying, capturing key presses, pan and zoom. This functionality can be changed programmatically. Explain code. Default display mode = map View (not satellite view). Changed using mv.toggleSatellite(); The user can move around by dragging the map using the mouse, or using your finger on touch screen devices. Double clicking will center the map on the point where the user clicked. mv.getZoomLevel() gets the zoomLevel that the map is at currently

Classes MapController Provides control functionality Positioning Panning Zooming Handling key events MapView instance can return a MapController using MapController mc = mv.getController(); Panning: 1) centreMapTo(point,true); jumps straight to the point specified. 2) animateTo(point); animates the map to the specified point. mc.zoomTo(zoomLevel); where zoomLevel is a variable of type integer (the uniform zoom level is 18, certain locations have higher zoom levels). Use this method to zoom in or out by first getting the current zoom level using MapView then incrementing or decrementing that level. mc.setFollowMyLocation(true); = follow the devices location on the map as the user travels

Classes Overlay MyLocationOverlay OverlayController Abstract base class Overlay.PixelCalculator Converts latitude, longitude into on-screen pixel coordinates. MyLocationOverlay User’s location on map OverlayController Manages overlays To change pieces of the maps, or add data/images to the map, we use overlays. An overlay = a layer that we can add on top of the map. (Point out overlays on picture) Allows us to add data such as markers, polylines and streets to the static map. To create an overlay, we must create a class that implements the abstract overlay class. Overlay.PixelCalculater is an important class since it obtains information about the map such as height and width and so that the overlay’s size can be matched to the map. User’s location on the map is therefore also an overlay and when it is active it will be requesting constant repaints. In order to use overlays, we use the OverlayController class: oc = mv.createOverlayController(); This controller allows us to add, activate, deactivate an overlay to the map

Classes Point TouchGestureDetector TrackballGestureDetector Specifies a point on the map expressed as Latitude and Longitude TouchGestureDetector Provides methods for obtaining information about motion gestures detected Detects scroll, tap and doubleTap TrackballGestureDetector Latitude and longitude values are kept as integer numbers of micro degrees. TouchGestureDetector analyzes a series of motions and detects gestures. Right now only detects scroll, tap and double tap. Returns information about these gestures such as where you tapped. TrackballGestureDetector provides the same functionality but this time to be used with a trackball instead of a touch screen.

Example Application Small example application that uses the maps API for android. Loads the MapView and when the user presses the U key it centers the map to the University of Malta as shown in the screenshot. Explain code.

Thank You! Any Questions?