Android: Google Maps not displaying -
i'm trying google map display. can see background (light gray background, small tiles, google logo in lower left), know i'm close. however, there no actual map displayed. in logcat, see message repeating on , over:
05-14 13:28:17.926: w/system.err(27458): @ android_maps_conflict_avoidance.com.google.googlenav.datarequest.datarequestdispatcher$dispatcherserver.run(datarequestdispatcher.java:1702)
i'm using google maps api 2 tethered phone testing running 2.3.4.
anyone know might causing this? thanks!
> package com.example.maptest; > > import android.os.bundle; > > import com.google.android.maps.mapactivity; import > com.google.android.maps.mapcontroller; import > com.google.android.maps.mapview; > > public class mymapactivity extends mapactivity { private mapview > mapview; private mapcontroller mapcontroller; > > @override public void oncreate(bundle savedinstancestate) { > super.oncreate(savedinstancestate); > setcontentview(r.layout.map_layout); > mapview = (mapview)findviewbyid(r.id.map_view); > } > > @override protected boolean isroutedisplayed() { > return false; } > > }
<permission android:name="com.example.maptest.permission.maps_receive" android:protectionlevel="signature"/> <uses-permission android:name="android.permission.access_network_state" /> <uses-permission android:name="com.example.maptest.permission.maps_receive"/> <uses-permission android:name="android.permission.internet" /> <uses-permission android:name="android.permission.write_external_storage"/> <uses-permission android:name="com.google.android.providers.gsf.permission.read_gservices"/> <uses-permission android:name="android.permission.access_coarse_location" /> <uses-permission android:name="android.permission.access_fine_location" /> <uses-feature android:glesversion="0x00020000" android:required="true"/> <uses-sdk android:minsdkversion="8" android:targetsdkversion="17" /> <application android:allowbackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/apptheme" > <uses-library android:required="true" android:name="com.google.android.maps" /> <activity android:name="com.example.maptest.mymapactivity" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> </activity> <activity android:name=".mainactivity" > </activity> <meta-data android:name="com.google.android.maps.v2.api_key" android:value="xxxxxxxxxxxxxxxxxxxx"/> </application>
this problem related map api key used sign manifest. take @ this post , this one describe same error experiencing. in both cases because api key used created wrong keystore
. need make sure use debug keystore when create api key in google api console if going testing eclipse.
Comments
Post a Comment