0

Hi If I leave blank the SHA key when I create the api key, will it work? Am I right that this means that all application works? I followed the codes given in https://developers.google.com/maps/documentation/android/start#obtaining_an_api_key When I run the app on my phone, I get error - fragment class not found. My phone is gingerbread. Am I right to reference the whole library project in my project??

user903772
  • 1,554
  • 5
  • 32
  • 55

2 Answers2

2

No it won't work. this is the way Google identify that the application was created on the same device as the key was produces. If you won't supply the key you wont see a map in your application.

With that said it look that you problem is not really related to the SHA1 key but ratter a wrong use of a MapFragment. I think that for this Android version you should use SupportMapFragment.

Emil Adz
  • 40,709
  • 36
  • 140
  • 187
0

I think it will not work, when you enter something like ;com.example.android.mapexample when requesting API key in google maps console, because your SHA key cannot be "".

Berťák
  • 7,143
  • 2
  • 29
  • 38
  • What if I left the whole textbox blank? Not even ;com.example.android.mapexample – user903772 Mar 06 '13 at 13:17
  • I think, that even your packagename cannot be `""`, google uses these things(sha key and packagename) to recognize your app so you must provide them in order to make it work. – Berťák Mar 06 '13 at 13:19
  • One more question - Does it work on the emulator if things are ok?? – user903772 Mar 06 '13 at 13:21
  • 1
    it works if you make some manipulations for the emulator see more information here: http://stackoverflow.com/questions/15172597/google-maps-api-v2-not-work-in-emulator/15177695#15177695\ – Emil Adz Mar 06 '13 at 13:25