0

I tried a lot of examples but still can't get it to work! I have a grid with no maps and " couldn't get connection factory client".

I tried here and here and here and many others. I tried to run it and on device but still the same.

Any ideas here?Any other good tutorial?

Thank you!

rajeshwaran
  • 1,512
  • 1
  • 18
  • 24
George
  • 5,808
  • 15
  • 83
  • 160

2 Answers2

0

this occurs when you use different key for the app in the manifest than the actual google project key. Try rechecking the key. I had the same problem, and figured it out the same way. It has nothing to deal with the code. Good Luck!

Kunal S. Kushwah
  • 883
  • 1
  • 8
  • 19
0

I see that you have tried my tutorial. The problem you describe usually happens when there is a problem with your key.

Please go over the next tutorial as well for getting your key:

Google Map API V2 Key

it this doesn't help you, try to delete the debug.keystore folder and run any android project to recreate a new key, and perform all the process of associating your key to your project using the console all over again.

And check again that you are adding all the permissions from the first tutorial in you manifest file.

Emil Adz
  • 40,709
  • 36
  • 140
  • 187
  • :before doing that, can you please give me a code for MainActivity ?To check if it works?Thanks – George Mar 18 '13 at 10:27
  • if your read carefully: "8. Now create an Activity that extends from “FragmentActivity” , create an XML layout file for this activity and set it as the content View of this activity, in the layout write the following:". so all you need to do is to create a FragmentActivity and set the setContentView to the layout that is described in the tutorial. – Emil Adz Mar 18 '13 at 10:39
  • :Ok, i did that .Also , I deleted the debug.keystore folder.The API key from google is still the same.Now,i have this problem.If i run it on my device it gives me "Re-installation failed due to different application signatures.","You must perform a full uninstall of the application. WARNING: This will remove the application data!","Please execute 'adb uninstall com.example.mymap' in a shell.".I executed adb uninstall and installed again the device but still the same!What to do now? – George Mar 18 '13 at 10:51
  • :If i run it on the emulator it gives me "This app won't run without Google Play services,which are missing from your phone" – George Mar 18 '13 at 10:52
  • :Ok, it works now!I run through device and i did update Google Play services.Now , its ok,thanks! – George Mar 18 '13 at 11:29
  • Great you managed to figure it out, @George, have a nice coding : ) – Emil Adz Mar 18 '13 at 11:59
  • :Thanks!I am trying now to tun it with "MapActivity" instead of "FragmentActivity" but it gives me an empty grid with this.Do you know sth that will help me? – George Mar 18 '13 at 12:06
  • @ Emil Adz:Ok, i found it , Sorry! – George Mar 18 '13 at 12:18