Android Maps v2 Couldn't get connection factory client -
i have problem. getting blank google map. tried around net. nothing seems solve issue. have pasted logcat below. have tried both debug key , release key. both not working. map not working. grey background google written below :( please
09-04 12:29:57.037: e/mapactivity(9569): couldn't connection factory client 09-04 12:29:57.067: d/dalvikvm(9569): gc_for_alloc freed 54k, 2% free 9295k/9464k, paused 14ms, total 14ms 09-04 12:29:57.637: w/system.err(9569): ioexception processing: 26 09-04 12:29:57.637: w/system.err(9569): java.io.ioexception: server returned: 3 09-04 12:29:57.647: w/system.err(9569): @ android_maps_conflict_avoidance.com.google.googlenav.map.basetilerequest.readresponsedata(basetilerequest.java:115) 09-04 12:29:57.647: w/system.err(9569): @ android_maps_conflict_avoidance.com.google.googlenav.map.mapservice$maptilerequest.readresponsedata(mapservice.java:1473) 09-04 12:29:57.657: w/system.err(9569): @ android_maps_conflict_avoidance.com.google.googlenav.datarequest.datarequestdispatcher.processdatarequest(datarequestdispatcher.java:1117) 09-04 12:29:57.657: w/system.err(9569): @ android_maps_conflict_avoidance.com.google.googlenav.datarequest.datarequestdispatcher.servicerequests(datarequestdispatcher.java:994) 09-04 12:29:57.657: w/system.err(9569): @ android_maps_conflict_avoidance.com.google.googlenav.datarequest.datarequestdispatcher$dispatcherserver.run(datarequestdispatcher.java:1702) 09-04 12:29:57.657: w/system.err(9569): @ java.lang.thread.run(thread.java:841)
my xml
<linearlayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:paddingbottom="@dimen/activity_vertical_margin" android:paddingleft="@dimen/activity_horizontal_margin" android:paddingright="@dimen/activity_horizontal_margin" android:paddingtop="@dimen/activity_vertical_margin" tools:context=".mainactivity" > <textview android:id="@+id/textlat" android:layout_height="wrap_content" android:layout_width="fill_parent"/> <textview android:id="@+id/textlong" android:layout_height="wrap_content" android:layout_width="fill_parent"/> <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="api key"/> </linearlayout>
my manifest
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.rrj.maps" android:versioncode="1" android:versionname="1.0" > <uses-sdk android:minsdkversion="17" android:targetsdkversion="17" /> <uses-feature android:glesversion="0x00020000" android:required="true"/> <permission android:name="com.rrj.maps.permission.maps_receive" android:protectionlevel="signature" /> <uses-permission android:name="android.permission.internet"/> <uses-permission android:name="android.permission.access_network_state"/> <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-permission android:name="com.rrj.maps.permission.maps_receive" /> <application android:allowbackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/apptheme" > <activity android:name="com.rrj.maps.mainactivity" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> </activity> <meta-data android:name="com.google.android.maps.v2.api_key" android:value="api_key"/> <uses-library android:name="com.google.android.maps"/> </application> </manifest>
[update]: tried generating sha1fingerprint again. observed signature algorithm used sha256withrsa example in google dev site show sha1withrsa causing problem?
in xml file using pld google map api v1.. , in manifest file have wrote code google map v2.. add in xml replace old.
<fragment xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/map" android:layout_width="match_parent" android:layout_height="match_parent" class="com.google.android.gms.maps.supportmapfragment"/>
and yes remove
<uses-library android:name="com.google.android.maps" />
from manifest file....
you can refer also:
Comments
Post a Comment