Android Maps




CS185c

Chris Pollett

May 7, 2012

Outline

Introduction

Introduction

AndroidManifest.xml

main.xml

The main layout for our app is pretty simple:


<com.google.android.maps.MapView
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/mapview"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:clickable="true"
    android:apiKey="Your Maps API Key goes here"
/>

Getting a maps API key

MapActivity

Quiz

Which of the following is true?

  1. Google Map data has a Creative Commons Share-Alike license.
  2. OpenLayers is a Java framework for drawing open street maps.
  3. If you want to use the camera in your iphone app it makes sense to have your view controller implement UIImagePickerControllerDelegate

Map Markers and Overlays

Using the Overlay on a Map

Miscellaneous