I've created my own keystore using this command from d.android:
$ keytool -genkey -v -keystore my-release-key.keystore
-alias my_alias -keyalg RSA -keysize 2048 -validity 10000
Next I've found SHA1 using: keytool -list -v -keystore my-release-keystore It was right after SHA1: ....
The in my app i have com.mypackagename.MyClassName
In the API Access of Google Api Console I've pasted the following:
MY_SHA1;com.mypackagename
And it was successfully added.
But when I am launching my app on the device I still have grey tile instead of map. Although in
<application android:label="@string/app_name" android:icon="@drawable/ic_launcher">
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="value_taken_from_Api_key_field_in_google_console">
And in fragment for map I also have pasted:
<fragment
android:id="@+id/map"
android:name="com.google.android.gms.maps.SupportMapFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:apiKey="value_taken_from_Api_key_field_in_google_console">
</fragment>
When I run my app straight from IDE using my device instead of emulator it shows grey screen (zoom buttons and "Google" label are shown). Also when I create .apk using mentioned keystore with my_alias then this .apk also shows grey screen instead of map (zoom buttons and "Google" label are also shown).