MapView: Couldn't get connection factory client

Go To


In my Android Application I have a Google MapView Activity and I am facing the following Error:

MapView: Couldn't get connection factory client

At first: I have a right Maps Key and the Internetpermission and the Map is displaying fine on Emulator and Device. The thing that I am confused about is that although the map works, the above error displays.

On the Device sometimes the Map loads and displays correctly and 1 minute later, if start to zoom and pinch the map the map does not continue loading and throws the error.

If I switch off and on again the mobile network on the device the map works fine again.

Edit: my Manifest file:

<?xml version="1.0" encoding="utf-8"?>

<!-- We're supporting AndroidSDK 7 -->
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="7"/>

<!-- We need access to the internet for loading maps -->
<uses-permission android:name="android.permission.INTERNET"/>
<!-- We're using both, network and GPS -->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>

<application android:icon="@drawable/icon" android:label="@string/app_name" 

    <!-- 4 test -->
    <uses-library android:name="android.test.runner" />

    <!-- We're using Google Maps API -->
    <uses-library android:required="true" android:name="" />

    <!-- Dashboard -->
    <activity android:name=".MobileSchatzsucheActivity" android:label="@string/app_name" android:launchMode="singleTask">
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />

    <!-- Maps Activity -->
    <activity android:name=".GoogleMapsActivity" />

    <!-- Schatzliste Activity -->
    <activity android:name=".SchatzlisteActivity" android:launchMode="singleTask"/>

    <!-- Schatzdetails Activity -->
    <activity android:name=".DetailsActivity"/>

    <!-- MyTreasuresCoverFlowActivity -->
    <activity android:name=".MyTreasuresCoverFlowActivity"/>

    <!-- Preferences Activity-->
    <activity android:name=".PreferencesActivity" 

    <!-- FileBrowser Activity -->
    <activity android:name=".FileBrowserActivity"


<instrumentation android:name="android.test.InstrumentationTestRunner"
    android:label="test test" />

2012-04-04 06:51
by phwa4563
See this post and this postAdil Soomro 2012-04-04 06:54
aste your manifeast fil - Shankar Agarwal 2012-04-04 07:36


Just try to give these Two Permission

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>

Because when you zoom in/zoom out the Google map goes accordingly in/out, so for that we need to give such permission. It will work then

2012-04-04 06:55
by Bhavin
I already have this two permissions in my Manifest file but the Error is still there - phwa4563 2012-04-04 07:39