A map is of any use only if we can view it at particular scales and the Google Maps API allows us to achieve this by having zoom controls built into the MapView widget.
Here we will build a small application that will open Google Maps with built-in zoom controls that will allow us to view any area of the map at any allowable scale.
Start a new Android project in Eclipse but, as with any map based application, select a Google API as the build target.
Open the manifest file of your project and add the following library
<uses>
definition to the<application>
element:<uses-library android:name="com.google.android.maps" />
Now add Internet permission to the
<manifest>
element:<uses-permission android:name="android.permission.INTERNET" />
Open the
main.xml
file and set it up as follows:<?xml version="1.0" encoding="utf-8"?> <com.google.android.maps.MapView xmlns:android="http://schemas.android.com/apk/res...