Introducing Map View and Map Activity

This section introduces several classes used to support Android maps:

> MapView is the Map View control.

> MapActivity is the base class you extend to create a new Activity that can include a Map

View. The MapActivity class handles the application life cycle and background service management required for displaying maps. As a result you can use Map Views only within

MapActivity-derived Activities.

Prepared for ASHLEE KABAT, email: [email protected] Order number: 56760408 This PDF is for the purchaser's personal use in accordance with the Wrox Terms of Service and under US copyright as stated on this book's copyright page. If you did not purchase this copy, please visit to purchase your own copy.

> Overlay is the class used to annotate your maps. Using Overlays, you can use a Canvas to draw onto any number of layers that are displayed on top of a Map View.

> MapController is used to control the map, enabling you to set the center location and zoom levels.

> MyLocationOverlay is a special Overlay that can be used to display the current position and orientation of the device.

> ItemizedOverlays and Overlayltems are used together to let you create a layer of map markers, displayed using Drawables and associated text.

Was this article helpful?

0 0
Mobile Apps Made Easy

Mobile Apps Made Easy

Quick start guide to skyrocket your offline and online business success with mobile apps. If you know anything about mobile devices, you’ve probably heard that famous phrase coined by one of the mobile device’s most prolific creators proclaiming that there’s an app for pretty much everything.

Get My Free Training Guide

Post a comment