Mapping with Google APIs in Android California

Learn how to tap into the many great mapping functionalities in Android.

Local Companies

DATAGENIX
1-888-458-2033
5225 Canyon Crest Drive Suite 355
Riverside, CA
Concierge for Business
408 993-1368
472 Clifton Avenue
San Jose, CA
Nexternal Solutions, Inc.
1-800-914-6161 x228
785 Grand Ave Suite 200
Carlsbad, CA
Computer Market Research
(858) 270-6668
4747 Morena Blvd.
San Diego, CA
California Motorcycle Accident Lawyer
415-777-1511
595 Market Street, Ste 2520
San Francisco, CA
Xtra Information Management
650-634-0403
651 Gateway Blvd
South San Francisco, CA
Digital Fuel
650-524-2520
951 Mariner's Island Boulevard
San Mateo, CA
Bennett Consulting
925-705-1812
Po Box 523
Alamo, CA
Ignify Inc
+562 483 2448
12440 Firestone Blvd, Suite 225
Norwalk, CA
SystemSelectionOnline.com
415-343-2948
225 Bush Street
San Francisco, CA


Mapping with Google APIs in Android

provided by: 
Originally published at Internet.com


Mapping functionality has become a must-have feature for new mobile devices. With all the new technology advances, mobile devices, especially cell phones, are more than capable of handling complicated mathematical calculations on their own or keeping up with the high-traffic communication with the servers. GPS devices used to be the dominant player with the mapping capabilities, but more and more mobile devices are offering almost full-featured GPS functionalities. Google's Android provides direct access to its popular mapping tools. You will explore key programming APIs that power its mapping features.

What Google APIs Are Available for Mapping?

Before you start, all the necessary development tools, plug-ins, and sample code you need are from Google's own Android site at http://code.google.com/android/. It also provides simple-to-follow instructions to get you started. I recommend you do that first if you have not done so already.

The majority of the mapping APIs are within the package com.google.android.maps. At a minimum, two of them are required to embed the mapping tools inside your software: MapActivity and MapView. MapActivity manages the activity life cycle and services behind a MapView. MapView is an Android View that displays a map. Other than these APIs, you also have MapController to perform panning and zooming a map. MyLocationOverlay and Overlay are used to draw the user's info or objects on top of the map.

Discussing mapping without mentioning GPS is nearly impossible now because GPS has become one of the indispensable features most people would want from their mobile devices. The package android.location is included for GPS support. LocationManager is the most important API; it provides access to the system location services. The mapping and GPS APIs are the essential elements for building location-based services (LBS). You will pretty much cover all these APIs in a working example later.

Constructing a MapView by a MapActivity

You can construct a MapView only by a MapActivity because it depends on background threads that access the network and filesystem managed by MapActivity. That is to say, you should always start by extending your class from MapActivity as follows: public class TutorialOnMaps extends MapActivity { private static MapView mMapView; /** Called when the activity is first created. */ @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.main); // Get the map view from resource file mMapView = (MapView)findViewById(R.id.mv); } }

While in the default resource file main.xml, you add in some on-screen buttons with transparent panels. To properly "inflate" the MapView, you use a well-known solution among Android developers to declare a MapView. Figure 1 shows the initial screen on the emulator with your on-screen buttons.

Featured Local Company

Haleo Corporation

408 833-5528
Kingston Way
San Jose, CA
http://www.valuadder.com

Related Articles
- Working with Images in Google's Android California
Google's new mobile platform, Android, has become increasingly popular among developers even without hardware available on the market yet. Discover where to get the right software APIs and documentation as well as what technologies are supported. Then, you will focus on the technologies for images by working through an example.
- Introducing Google's Geocoding Service California
- Historis Data Storage and Retrieval California
- How to Create a Custom XSL Map for Use in BizTalk 2006 California
- Performing HTTP Geocoding with the Google Maps API California
- Add Mapping Technology To Your Work California
- Introducing the Google AJAX APIs California
- URL Mapping in ASP.NET 2.0 California
- This Year's Buzz in Web Services California
Regional Articles
- Mapping with Google APIs in Android Adelanto CA
- Mapping with Google APIs in Android Agoura Hills CA
- Mapping with Google APIs in Android Alameda CA
- Mapping with Google APIs in Android Alhambra CA
- Mapping with Google APIs in Android Aliso Viejo CA
- Mapping with Google APIs in Android Alpine CA
- Mapping with Google APIs in Android Altadena CA
- Mapping with Google APIs in Android Anaheim CA
- Mapping with Google APIs in Android Antelope CA
- Mapping with Google APIs in Android Antioch CA
- Mapping with Google APIs in Android Apple Valley CA
- Mapping with Google APIs in Android Aptos CA
- Mapping with Google APIs in Android Arcadia CA
- Mapping with Google APIs in Android Arcata CA
- Mapping with Google APIs in Android Arroyo Grande CA
- Mapping with Google APIs in Android Arvin CA
- Mapping with Google APIs in Android Atascadero CA
- Mapping with Google APIs in Android Atwater CA
- Mapping with Google APIs in Android Auburn CA
- Mapping with Google APIs in Android Avenal CA
- Mapping with Google APIs in Android Azusa CA
- Mapping with Google APIs in Android Bakersfield CA
- Mapping with Google APIs in Android Baldwin Park CA
- Mapping with Google APIs in Android Banning CA
- Mapping with Google APIs in Android Barstow CA
- Mapping with Google APIs in Android Bell CA
- Mapping with Google APIs in Android Bellflower CA
- Mapping with Google APIs in Android Belmont CA
- Mapping with Google APIs in Android Benicia CA
- Mapping with Google APIs in Android Berkeley CA
- Mapping with Google APIs in Android Beverly Hills CA
- Mapping with Google APIs in Android Bloomington CA
- Mapping with Google APIs in Android Blythe CA
- Mapping with Google APIs in Android Bonita CA
- Mapping with Google APIs in Android Brawley CA
- Mapping with Google APIs in Android Brea CA
- Mapping with Google APIs in Android Brentwood CA
- Mapping with Google APIs in Android Buena Park CA
- Mapping with Google APIs in Android Burbank CA
- Mapping with Google APIs in Android Burlingame CA
- Mapping with Google APIs in Android Calabasas CA
- Mapping with Google APIs in Android Calexico CA
- Mapping with Google APIs in Android Camarillo CA
- Mapping with Google APIs in Android Campbell CA
- Mapping with Google APIs in Android Canoga Park CA
- Mapping with Google APIs in Android Canyon Country CA
- Mapping with Google APIs in Android Carlsbad CA
- Mapping with Google APIs in Android Carmichael CA
- Mapping with Google APIs in Android Carpinteria CA
- Mapping with Google APIs in Android Carson CA
- Mapping with Google APIs in Android Castaic CA
- Mapping with Google APIs in Android Castro Valley CA
- Mapping with Google APIs in Android Cathedral City CA
- Mapping with Google APIs in Android Ceres CA
- Mapping with Google APIs in Android Cerritos CA
- Mapping with Google APIs in Android Chatsworth CA
- Mapping with Google APIs in Android Chico CA
- Mapping with Google APIs in Android Chino CA
- Mapping with Google APIs in Android Chino Hills CA
- Mapping with Google APIs in Android Chowchilla CA
- Mapping with Google APIs in Android Chula Vista CA
- Mapping with Google APIs in Android Citrus Heights CA
- Mapping with Google APIs in Android Claremont CA
- Mapping with Google APIs in Android Clovis CA
- Mapping with Google APIs in Android Coachella CA
- Mapping with Google APIs in Android Coalinga CA
- Mapping with Google APIs in Android Colton CA
- Mapping with Google APIs in Android Compton CA
- Mapping with Google APIs in Android Concord CA
- Mapping with Google APIs in Android Corcoran CA
- Mapping with Google APIs in Android Corona CA
- Mapping with Google APIs in Android Coronado CA
- Mapping with Google APIs in Android Costa Mesa CA
- Mapping with Google APIs in Android Covina CA
- Mapping with Google APIs in Android Crescent City CA
- Mapping with Google APIs in Android Culver City CA
- Mapping with Google APIs in Android Cupertino CA
- Mapping with Google APIs in Android Cypress CA
- Mapping with Google APIs in Android Daly City CA
- Mapping with Google APIs in Android Dana Point CA
- Mapping with Google APIs in Android Danville CA
- Mapping with Google APIs in Android Davis CA
- Mapping with Google APIs in Android Delano CA
- Mapping with Google APIs in Android Desert Hot Springs CA
- Mapping with Google APIs in Android Diamond Bar CA
- Mapping with Google APIs in Android Dinuba CA
- Mapping with Google APIs in Android Downey CA
- Mapping with Google APIs in Android Duarte CA
- Mapping with Google APIs in Android Dublin CA
- Mapping with Google APIs in Android El Cajon CA
- Mapping with Google APIs in Android El Centro CA
- Mapping with Google APIs in Android El Cerrito CA
- Mapping with Google APIs in Android El Dorado Hills CA
- Mapping with Google APIs in Android El Monte CA
- Mapping with Google APIs in Android El Segundo CA
- Mapping with Google APIs in Android El Sobrante CA
- Mapping with Google APIs in Android Elk Grove CA
- Mapping with Google APIs in Android Emeryville CA
- Mapping with Google APIs in Android Encinitas CA
- Mapping with Google APIs in Android Encino CA
- Mapping with Google APIs in Android Escondido CA
- Mapping with Google APIs in Android Eureka CA
- Mapping with Google APIs in Android Fair Oaks CA
- Mapping with Google APIs in Android Fairfield CA
- Mapping with Google APIs in Android Fallbrook CA
- Mapping with Google APIs in Android Fillmore CA
- Mapping with Google APIs in Android Folsom CA
- Mapping with Google APIs in Android Fontana CA
- Mapping with Google APIs in Android Fountain Valley CA
- Mapping with Google APIs in Android Fremont CA
- Mapping with Google APIs in Android Fresno CA
- Mapping with Google APIs in Android Fullerton CA
- Mapping with Google APIs in Android Galt CA
- Mapping with Google APIs in Android Garden Grove CA
- Mapping with Google APIs in Android Gardena CA
- Mapping with Google APIs in Android Gilroy CA
- Mapping with Google APIs in Android Glendale CA
- Mapping with Google APIs in Android Glendora CA
- Mapping with Google APIs in Android Goleta CA
- Mapping with Google APIs in Android Granada Hills CA
- Mapping with Google APIs in Android Granite Bay CA
- Mapping with Google APIs in Android Grass Valley CA
- Mapping with Google APIs in Android Hacienda Heights CA
- Mapping with Google APIs in Android Half Moon Bay CA
- Mapping with Google APIs in Android Hanford CA
- Mapping with Google APIs in Android Harbor City CA
- Mapping with Google APIs in Android Hawaiian Gardens CA
- Mapping with Google APIs in Android Hawthorne CA
- Mapping with Google APIs in Android Hayward CA
- Mapping with Google APIs in Android Healdsburg CA
- Mapping with Google APIs in Android Hemet CA
- Mapping with Google APIs in Android Hercules CA
- Mapping with Google APIs in Android Hermosa Beach CA
- Mapping with Google APIs in Android Hesperia CA
- Mapping with Google APIs in Android Highland CA
- Mapping with Google APIs in Android Hollister CA
- Mapping with Google APIs in Android Huntington Beach CA
- Mapping with Google APIs in Android Huntington Park CA
- Mapping with Google APIs in Android Imperial Beach CA
- Mapping with Google APIs in Android Indio CA
- Mapping with Google APIs in Android Inglewood CA
- Mapping with Google APIs in Android Irvine CA
- Mapping with Google APIs in Android King City CA
- Mapping with Google APIs in Android La Canada Flintridge CA
- Mapping with Google APIs in Android La Crescenta CA
- Mapping with Google APIs in Android La Habra CA
- Mapping with Google APIs in Android La Jolla CA
- Mapping with Google APIs in Android La Mesa CA
- Mapping with Google APIs in Android La Mirada CA
- Mapping with Google APIs in Android La Palma CA
- Mapping with Google APIs in Android La Puente CA
- Mapping with Google APIs in Android La Quinta CA
- Mapping with Google APIs in Android La Verne CA
- Mapping with Google APIs in Android Laguna Beach CA
- Mapping with Google APIs in Android Laguna Hills CA
- Mapping with Google APIs in Android Laguna Niguel CA
- Mapping with Google APIs in Android Lake Elsinore CA
- Mapping with Google APIs in Android Lake Forest CA
- Mapping with Google APIs in Android Lakeside CA
- Mapping with Google APIs in Android Lakewood CA
- Mapping with Google APIs in Android Lamont CA
- Mapping with Google APIs in Android Lancaster CA
- Mapping with Google APIs in Android Lawndale CA
- Mapping with Google APIs in Android Lemon Grove CA
- Mapping with Google APIs in Android Lemoore CA
- Mapping with Google APIs in Android Livermore CA
- Mapping with Google APIs in Android Lodi CA
- Mapping with Google APIs in Android Loma Linda CA
- Mapping with Google APIs in Android Lomita CA
- Mapping with Google APIs in Android Lompoc CA
- Mapping with Google APIs in Android Long Beach CA
- Mapping with Google APIs in Android Los Alamitos CA
- Mapping with Google APIs in Android Los Altos CA
- Mapping with Google APIs in Android Los Angeles CA
- Mapping with Google APIs in Android Los Banos CA
- Mapping with Google APIs in Android Los Gatos CA
- Mapping with Google APIs in Android Los Osos CA
- Mapping with Google APIs in Android Lynwood CA
- Mapping with Google APIs in Android Madera CA
- Mapping with Google APIs in Android Malibu CA
- Mapping with Google APIs in Android Manhattan Beach CA
- Mapping with Google APIs in Android Manteca CA
- Mapping with Google APIs in Android Marina CA
- Mapping with Google APIs in Android Marina Del Rey CA
- Mapping with Google APIs in Android Martinez CA
- Mapping with Google APIs in Android Marysville CA
- Mapping with Google APIs in Android Maywood CA
- Mapping with Google APIs in Android Mckinleyville CA
- Mapping with Google APIs in Android Menlo Park CA
- Mapping with Google APIs in Android Merced CA
- Mapping with Google APIs in Android Mill Valley CA
- Mapping with Google APIs in Android Millbrae CA
- Mapping with Google APIs in Android Milpitas CA
- Mapping with Google APIs in Android Mira Loma CA
- Mapping with Google APIs in Android Mission Hills CA
- Mapping with Google APIs in Android Mission Viejo CA
- Mapping with Google APIs in Android Modesto CA
- Mapping with Google APIs in Android Monrovia CA
- Mapping with Google APIs in Android Montclair CA
- Mapping with Google APIs in Android Montebello CA
- Mapping with Google APIs in Android Monterey CA
- Mapping with Google APIs in Android Monterey Park CA
- Mapping with Google APIs in Android Moorpark CA
- Mapping with Google APIs in Android Moraga CA
- Mapping with Google APIs in Android Moreno Valley CA
- Mapping with Google APIs in Android Morgan Hill CA
- Mapping with Google APIs in Android Mountain View CA
- Mapping with Google APIs in Android Murrieta CA
- Mapping with Google APIs in Android Napa CA
- Mapping with Google APIs in Android National City CA
- Mapping with Google APIs in Android Nevada City CA
- Mapping with Google APIs in Android Newark CA
- Mapping with Google APIs in Android Newbury Park CA
- Mapping with Google APIs in Android Newhall CA
- Mapping with Google APIs in Android Newport Beach CA
- Mapping with Google APIs in Android Nipomo CA
- Mapping with Google APIs in Android Norco CA
- Mapping with Google APIs in Android North Highlands CA
- Mapping with Google APIs in Android North Hills CA
- Mapping with Google APIs in Android North Hollywood CA
- Mapping with Google APIs in Android Northridge CA
- Mapping with Google APIs in Android Norwalk CA
- Mapping with Google APIs in Android Novato CA
- Mapping with Google APIs in Android Oakdale CA
- Mapping with Google APIs in Android Oakland CA
- Mapping with Google APIs in Android Oakley CA
- Mapping with Google APIs in Android Oceanside CA
- Mapping with Google APIs in Android Ojai CA
- Mapping with Google APIs in Android Ontario CA
- Mapping with Google APIs in Android Orange CA
- Mapping with Google APIs in Android Orangevale CA
- Mapping with Google APIs in Android Orinda CA
- Mapping with Google APIs in Android Oroville CA
- Mapping with Google APIs in Android Oxnard CA
- Mapping with Google APIs in Android Pacific Grove CA
- Mapping with Google APIs in Android Pacific Palisades CA
- Mapping with Google APIs in Android Pacifica CA
- Mapping with Google APIs in Android Pacoima CA
- Mapping with Google APIs in Android Palm Desert CA
- Mapping with Google APIs in Android Palm Springs CA
- Mapping with Google APIs in Android Palmdale CA
- Mapping with Google APIs in Android Palo Alto CA
- Mapping with Google APIs in Android Palos Verdes Peninsula CA
- Mapping with Google APIs in Android Panorama City CA
- Mapping with Google APIs in Android Paradise CA
- Mapping with Google APIs in Android Paramount CA
- Mapping with Google APIs in Android Pasadena CA
- Mapping with Google APIs in Android Paso Robles CA
- Mapping with Google APIs in Android Patterson CA
- Mapping with Google APIs in Android Perris CA
- Mapping with Google APIs in Android Petaluma CA
- Mapping with Google APIs in Android Pico Rivera CA
- Mapping with Google APIs in Android Pinole CA
- Mapping with Google APIs in Android Pittsburg CA
- Mapping with Google APIs in Android Placentia CA
- Mapping with Google APIs in Android Placerville CA
- Mapping with Google APIs in Android Pleasant Hill CA
- Mapping with Google APIs in Android Pleasanton CA
- Mapping with Google APIs in Android Pomona CA
- Mapping with Google APIs in Android Port Hueneme CA
- Mapping with Google APIs in Android Porterville CA
- Mapping with Google APIs in Android Poway CA
- Mapping with Google APIs in Android Ramona CA
- Mapping with Google APIs in Android Rancho Cordova CA
- Mapping with Google APIs in Android Rancho Cucamonga CA
- Mapping with Google APIs in Android Rancho Palos Verdes CA
- Mapping with Google APIs in Android Rancho Santa Margarita CA
- Mapping with Google APIs in Android Red Bluff CA
- Mapping with Google APIs in Android Redding CA
- Mapping with Google APIs in Android Redlands CA
- Mapping with Google APIs in Android Redondo Beach CA
- Mapping with Google APIs in Android Redwood City CA
- Mapping with Google APIs in Android Reedley CA
- Mapping with Google APIs in Android Reseda CA
- Mapping with Google APIs in Android Rialto CA
- Mapping with Google APIs in Android Richmond CA
- Mapping with Google APIs in Android Ridgecrest CA
- Mapping with Google APIs in Android Riverbank CA
- Mapping with Google APIs in Android Riverside CA
- Mapping with Google APIs in Android Rocklin CA
- Mapping with Google APIs in Android Rohnert Park CA
- Mapping with Google APIs in Android Rosamond CA
- Mapping with Google APIs in Android Rosemead CA
- Mapping with Google APIs in Android Roseville CA
- Mapping with Google APIs in Android Rowland Heights CA
- Mapping with Google APIs in Android Sacramento CA
- Mapping with Google APIs in Android Salinas CA
- Mapping with Google APIs in Android San Anselmo CA
- Mapping with Google APIs in Android San Bernardino CA
- Mapping with Google APIs in Android San Bruno CA
- Mapping with Google APIs in Android San Carlos CA
- Mapping with Google APIs in Android San Clemente CA
- Mapping with Google APIs in Android San Diego CA
- Mapping with Google APIs in Android San Dimas CA
- Mapping with Google APIs in Android San Fernando CA
- Mapping with Google APIs in Android San Francisco CA
- Mapping with Google APIs in Android San Gabriel CA
- Mapping with Google APIs in Android San Jacinto CA
- Mapping with Google APIs in Android San Jose CA
- Mapping with Google APIs in Android San Juan Capistrano CA
- Mapping with Google APIs in Android San Leandro CA
- Mapping with Google APIs in Android San Lorenzo CA
- Mapping with Google APIs in Android San Luis Obispo CA
- Mapping with Google APIs in Android San Marcos CA
- Mapping with Google APIs in Android San Mateo CA
- Mapping with Google APIs in Android San Pablo CA
- Mapping with Google APIs in Android San Pedro CA
- Mapping with Google APIs in Android San Rafael CA
- Mapping with Google APIs in Android San Ramon CA
- Mapping with Google APIs in Android San Ysidro CA
- Mapping with Google APIs in Android Sanger CA
- Mapping with Google APIs in Android Santa Ana CA
- Mapping with Google APIs in Android Santa Barbara CA
- Mapping with Google APIs in Android Santa Clara CA
- Mapping with Google APIs in Android Santa Clarita CA
- Mapping with Google APIs in Android Santa Cruz CA
- Mapping with Google APIs in Android Santa Fe Springs CA
- Mapping with Google APIs in Android Santa Maria CA
- Mapping with Google APIs in Android Santa Monica CA
- Mapping with Google APIs in Android Santa Paula CA
- Mapping with Google APIs in Android Santa Rosa CA
- Mapping with Google APIs in Android Santee CA
- Mapping with Google APIs in Android Saratoga CA
- Mapping with Google APIs in Android Scotts Valley CA
- Mapping with Google APIs in Android Seal Beach CA
- Mapping with Google APIs in Android Seaside CA
- Mapping with Google APIs in Android Sebastopol CA
- Mapping with Google APIs in Android Selma CA
- Mapping with Google APIs in Android Shafter CA
- Mapping with Google APIs in Android Sherman Oaks CA
- Mapping with Google APIs in Android Shingle Springs CA
- Mapping with Google APIs in Android Simi Valley CA
- Mapping with Google APIs in Android Sonoma CA
- Mapping with Google APIs in Android Sonora CA
- Mapping with Google APIs in Android South El Monte CA
- Mapping with Google APIs in Android South Gate CA
- Mapping with Google APIs in Android South Lake Tahoe CA
- Mapping with Google APIs in Android South Pasadena CA
- Mapping with Google APIs in Android South San Francisco CA
- Mapping with Google APIs in Android Spring Valley CA
- Mapping with Google APIs in Android Stanton CA
- Mapping with Google APIs in Android Stockton CA
- Mapping with Google APIs in Android Studio City CA
- Mapping with Google APIs in Android Suisun City CA
- Mapping with Google APIs in Android Sun City CA
- Mapping with Google APIs in Android Sun Valley CA
- Mapping with Google APIs in Android Sunland CA
- Mapping with Google APIs in Android Sunnyvale CA
- Mapping with Google APIs in Android Susanville CA
- Mapping with Google APIs in Android Sylmar CA
- Mapping with Google APIs in Android Taft CA
- Mapping with Google APIs in Android Tarzana CA
- Mapping with Google APIs in Android Tehachapi CA
- Mapping with Google APIs in Android Temecula CA
- Mapping with Google APIs in Android Temple City CA
- Mapping with Google APIs in Android Thermal CA
- Mapping with Google APIs in Android Thousand Oaks CA
- Mapping with Google APIs in Android Torrance CA
-