Couldn't Get Connection Factory Client

Still Gets Couldn't get connection factory client Error

I guess you have mixed some of V1 and V2 features (like using <uses-library android:name="com.google.android.maps" /> in manifest and use of GeoPoint etc. (https://groups.google.com/forum/?fromgroups=#!topic/android-developers/CGF5X1HMLuY)

Try with the sample code below :

MActivity.java

   public class MActivity extends FragmentActivity{

private GoogleMap map;
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_map);

map = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))
.getMap();

double lat = 6.796396;
double longi = 79.877823;
final LatLng HAMBURG = new LatLng(lat,longi);
Marker hamburg = map.addMarker(new MarkerOptions().position(HAMBURG)
.title("Hamburg"));
map.moveCamera(CameraUpdateFactory.newLatLngZoom(HAMBURG, 15));


}

Map.xml

   <RelativeLayout 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"
tools:context=".MapsActivity" >

<fragment
android:id="@+id/map"
android:layout_width="match_parent"
android:layout_height="match_parent"
class="com.google.android.gms.maps.SupportMapFragment" />
</RelativeLayout>

Remove <uses-library android:name="com.google.android.maps" />
from manifest.

Couldn't get connection factory client

I'm getting the same problem when using getFromLocationName, with a 'java.io.IOException:Service not Available' error.

I've done a bit of googling around and it seems this is a bug in the software.

http://code.google.com/p/android/issues/detail?id=8816

android app Couldn't get connection factory client

Ok, I got the answer myself. But I really had to dig a lot. The problem was because of Google Map Api version. The code I have used works only with Api V1 which is deprecated. So, you have to either register your app under Version 1 and use that key in android manifest or use Fragment (version 2 android map code) to resolve this problem. I wish someone else had answered this before or in any other threads.

Anyways Enjoy.

Api key android make couldn't get connection factory client ?

Firstly, sory for the late answer :). You must use sha1 fingerprint to generate new api-key. You can get your sha1 with your .keystore file. In debug mode with debug.keystore file you can get sha1. But this will not work after you publish your app with debug api-key. You should generate release api-key for it. Firstly you must sign your app and create new private .keystore file. Then you can get sha1 with this private keystore file. After that, you can generate release api-key for your app.

Couldn't get connection factory client

If you are running this in an emulator either version API 8 or API 9, this is a known bug with the emulator, see this bug report service not available

I find the same behaviour. I can get it to work on an API level 7 emulator (2.1), although sometimes it fails, so I have my code try twice before popping up a "geocoder error" Toast.

Couldn't get connection factory client. API key is working

I have found the problem in my particular situation. And its a dumb situation as I get it.

I still could not get rid of the "Couldn't get connection factory client" problem (in one of the sources I actually read stated that this message was a bug and should be ignored in most cases. Most of the time the problem is smthing else.)

My "actual" problem was simply putting in GeoPoints in wrong format. I first did it it like:

GeoPoint point = new GeoPoint(19.2,-99.1);

and obviously it was wrong way of putting it. The numbers are expected to be bigger according to the documentation. So I used the following and it worked...

GeoPoint point = new GeoPoint(19240000,-99120000);

Sorry for the misleading question. But I ll leave it here. Maybe smo else would have the same problem.

Couldn't get connection factory client ANDROID GOOGLE MAP

this

<uses-library android:name="com.google.android.maps" />

and this

<com.google.android.maps.MapView
android:id="@+id/mapView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:apiKey="MyKey"
android:clickable="true"/>

is the old google maps library which is not what you want. you need google maps v2 library

http://developer.android.com/google/play-services/maps.html

Couldn't get connection factory client in logcat

Random Error by Google it seems.Started working on its own :|



Related Topics



Leave a reply



Submit