thanks for responding. here's my problem, I AM using the release map key that I generated from my MD5 fingerprint.
I just did not put my map key in the code above... this is very frustrating. Nick On Oct 27, 12:34 pm, androlog <[EMAIL PROTECTED]> wrote: > Starting October 21 or so Google protects it's maps from unauthorized > usage by Google Map API > key.http://android-developers.blogspot.com/2008/10/new-android-maps-api-t... > Basically all you have to do is to sign your keystore with java > keytool then obtain a key for your private key from Google and add > this Google key into your code. > This is better described here:http://www.anddev.org/viewtopic.php?p=12221 > Let me know if this helped. > > I had the same problem, and I found the solution. > > On Oct 27, 9:52 am, nick fox <[EMAIL PROTECTED]> wrote: > > > When I install this on my phone, all I see is a blank grid, no map. > > Does anyone see any errors? It works fine when I run it in the > > emulator with the debug maps api key but not on the phone with the > > release maps api key. > > > thanks > > Nick > > > GoogleMap.java > > > package com.websmithing.googlemap; > > > import com.google.android.maps.MapController; > > import com.google.android.maps.MapView; > > import com.google.android.maps.GeoPoint; > > import com.google.android.maps.MapActivity; > > import android.os.Bundle; > > import android.view.KeyEvent; > > > public class GoogleMap extends MapActivity { > > private MapView mapView; > > private MapController mc; > > > /** Called when the activity is first created. */ > > @Override > > public void onCreate(Bundle savedInstanceState) { > > super.onCreate(savedInstanceState); > > setContentView(R.layout.main); > > > mapView = (MapView) findViewById(R.id.mapview1); > > mc = mapView.getController(); > > > String coordinates[] = {"47.47", "-122.01"}; > > double lat = Double.parseDouble(coordinates[0]); > > double lng = Double.parseDouble(coordinates[1]); > > > GeoPoint p = new GeoPoint( > > (int) (lat * 1E6), > > (int) (lng * 1E6)); > > > mc.animateTo(p); > > mc.setZoom(17); > > > mapView.invalidate(); > > } > > > @Override > > protected boolean isRouteDisplayed() { > > // TODO Auto-generated method stub > > return false; > > } > > > public boolean onKeyDown(int keyCode, KeyEvent event) { > > switch (keyCode) { > > case KeyEvent.KEYCODE_3: > > mc.zoomIn(); > > break; > > case KeyEvent.KEYCODE_1: > > mc.zoomOut(); > > break; > > } > > return super.onKeyDown(keyCode, event); > > } > > > } > > > main.xml > > > <?xml version="1.0" encoding="utf-8"?> > > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ > > android" > > android:orientation="vertical" > > android:layout_width="fill_parent" > > android:layout_height="fill_parent" > > > > > <com.google.android.maps.MapView > > android:id="@+id/mapview1" > > android:layout_width="fill_parent" > > android:layout_height="fill_parent" > > android:enabled="true" > > android:clickable="true" > > android:apiKey="my_release_api_key" /> > > </LinearLayout> > > > AndroidManifest.xml > > > <?xml version="1.0" encoding="utf-8"?> > > <manifest xmlns:android="http://schemas.android.com/apk/res/android" > > package="com.websmithing.googlemap" > > android:versionCode="1" > > android:versionName="1.0.0"> > > <application android:icon="@drawable/icon" android:label="@string/ > > app_name"> > > <uses-library android:name="com.google.android.maps" /> > > > <activity android:name=".GoogleMap" > > android:label="@string/app_name"> > > <intent-filter> > > <action android:name="android.intent.action.MAIN" /> > > <category > > android:name="android.intent.category.LAUNCHER" /> > > </intent-filter> > > </activity> > > </application> > > <uses-permission > > android:name="android.permission.ACCESS_FINE_LOCATION" /> > > <uses-permission android:name="android.permission.INTERNET" /> > > </manifest> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---