如何为谷歌地图嵌入Android应用程序创建我自己的指纹供公众使用
我的谷歌地图嵌入式 Android 应用程序在模拟器和真实设备上正常工作,但在签署我的应用程序并将 .apk 文件放在真实设备上后,它不会加载谷歌地图。我认为我犯了一些签名错误。我已经注册了 debug.keystore与谷歌一起获取谷歌地图 API 密钥。我在互联网上搜索了谷歌地图嵌入式 Android 应用程序的签名方法,但没有找到任何对我有用的东西。我正在将此应用程序发布到 Android 市场,但这(谷歌地图不会加载)真实设备)问题卡住 我。
所以请任何人帮助我,我可以获得谷歌地图 API 密钥供公众使用,并且可以正确地使用 签署此应用程序。
提前致谢 。
My google maps embedded android app working correctly on emulator and real device but after signing my app and putting .apk file on the real device it dose not load google maps.I think that I have made some signing error.I have registered debug.keystore with google for getting google map API key.I searched internet for signing methods of google map embedded android app but I did not found any thing useful to me.I am publishing this app to the android market but this (google maps does not load on real device )problem stuck me.
So please any one help me that I can get google maps API key for public use and can properly
sign this app .
Thanks in advance .
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我很确定当您发布 Android 应用程序时您需要不同的地图 API 密钥。
我引用:
请记住,每个 Maps API 密钥都与特定的签名证书唯一关联。这意味着:
•当您开始开发时,您可以使用SDK工具创建的调试证书进行注册。
•当您准备好发布您的应用程序时,您需要使用用于签署发布应用程序的证书再次注册。然后,您必须更新 MapView 元素,以便它们引用发布 API 密钥,而不是调试密钥,然后使用发布证书对您的应用程序进行签名。
以上引用可以在这里找到:
http://code.google.com/android/add -ons/google-apis/maps-overview.html
下面的网页告诉您如何获取签名证书的 MD5 指纹
http://code.google.com/android/add -ons/google-apis/mapkey.html#getfingerprint
I'm pretty sure you need a different maps API key when you release an android application.
I quote:
Keep in mind that each Maps API Key is uniquely associated with a specific signing certificate. That means that:
•When you are getting started on developing, you can register using the debug certificate created by the SDK tools.
•When you are ready to publish your application, you need to register again using the certificate with which you will sign your application for release. You must then update your MapView elements so that they reference the release API Key, rather than the debug Key, and then sign your application with your release certificate.
Above quote is found here:
http://code.google.com/android/add-ons/google-apis/maps-overview.html
Below webpage tells you how to get MD5 fingerprint for your signing certificate
http://code.google.com/android/add-ons/google-apis/mapkey.html#getfingerprint