Reputation: 17743
I have tried to use Google Maps API in my app. I have made key fingerprint, inserted into app, I tried to see some map (doesn't matther what map is it now), but all I see is a empty grid. I have in manifest
< uses-library android:name="com.google.android.maps" />
I have my build AVD targeted at Gogle Api's, and all I see is the empty grid. Do you know, what can be wrong? My next thought was about to use build maps and link to them from my current app, when I will additionally show my position. But is it possible?
Manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.app.seven"
android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name" android:debuggable="true">
<uses-library android:required="true" android:name="com.google.android.maps" />
<activity android:name=".myAvis"
android:label="@string/app_name"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".menu"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.NoTitleBar">
</activity>
<activity android:name=".finActivity"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.NoTitleBar">
</activity>
<activity android:name=".calendar"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.NoTitleBar">
</activity>
<activity android:name=".enquiry"
android:screenOrientation="portrait"
android:label="@string/enquiryTitle"
android:windowSoftInputMode="stateVisible|adjustResize">
</activity>
<activity android:name=".update"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.Dialog"
android:label="@string/updateString">
</activity>
<activity android:name=".photo"
android:screenOrientation="portrait">
</activity>
<activity android:name=".mapa"
android:theme="@android:style/Theme.NoTitleBar">
</activity>
</application>
<uses-sdk android:minSdkVersion="7" />
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_CALENDAR"/>
<uses-permission android:name="android.permission.WRITE_CALENDAR"/>
<uses-permission android:name="android.permission.INSTALL_PACKAGES"/>
<uses-permission android:name="android.permission.DELETE_PACKAGES"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />
</manifest>
Upvotes: 1
Views: 2641
Reputation: 524
just put -v after the list like the write below these will give you the MD5 file
keytool -v -list -keystore "..(navigate to).android\debug.keystore"
Please +1 if this is usefull or you can check here
http://irahuldev.blogspot.in/2012/03/how-to-get-google-maps-api-key-for.html
Upvotes: 0
Reputation: 2578
The new (1.7) java generates SHA1 key as default. Add the -v option to the keytool parameter set, and you'll get an MD5 hash too.
Upvotes: 0
Reputation: 8014
Ok here is few steps that you can do to get MD5 key..
keytool -list -keystore "..(navigate to).android\debug.keystore"
Upvotes: 1