Fire的和谷歌地图API

Fire的和谷歌地图API

本文介绍了Kindle Fire的和谷歌地图API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在开发一些地图功能的应用程序,以

We're developing an app with some map features, with

<uses-library android:name="com.google.android.maps" />

在清单。它运行好于Xoom的和Galaxy Tab的,以及一些手机。它也运行在谷歌API的仿真器之一的罚款。当安装到Kindle Fire的,我们得到

in the manifest. It runs well on a Xoom and a Galaxy Tab, as well as several phones. It also runs fine in one of the Google APIs emulators. When installing to the Kindle Fire, we get

[2011-12-20 16:25:04 - android] Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY
[2011-12-20 16:25:04 - android] Please check logcat output for more details.
[2011-12-20 16:25:04 - android] Launch canceled!

E/PackageManager( 1385): Package <package> requires unavailable shared library com.google.android.maps; failing!
W/PackageManager( 1385): Package <package> couldn't be installed.
D/AndroidRuntime(12606): Shutting down VM

这帖子:证实了我开始怀疑,所要求的API是真正从设备丢失。

This post: http://stackoverflow.com/a/4509787/931277 confirms what I was starting to suspect, that the required api is really missing from the device.

有什么办法,包括这个库的应用程序,而不是依靠其列入打造的Andr​​oid设备上?

Is there any way to include this library with an application, rather than relying on its inclusion in the Android build on the device?

推荐答案

不仅是有没有的方式来访问这个API,但你所提出的建议作为替代(APK追捕一个谷歌地图并安装该到消防),不仅是侵犯版权,但可能不会工作,因为谷歌地图应用将不提供系统库,其他应用程序将使用。

Not only is there no "way to access this api", but what you are suggesting as the alternative ("hunting down a Google Maps apk and installing that onto the Fire") is not only a copyright violation but probably will not work, since the Google Maps app will not supply the system library that other apps would use.

更新基于编辑:

有什么办法,包括这个库的应用程序,而不是依靠其列入打造的Andr​​oid设备上?

没有,对不起。谷歌授权谷歌地图(应用程序和系统库),并有来自谷歌授权其用于固件使用之外没有分发选项。

No, sorry. Google licenses Google Maps (app and system library), and there are no distribution options outside of licensing it from Google for use with firmware.

您可能会考虑OSMDroid和OpenStreetMap的,或者使用的WebView 和基于Web的谷歌地图。

You might consider OSMDroid and OpenStreetMap, or using WebView and the Web-based Google Maps.

这篇关于Kindle Fire的和谷歌地图API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-31 09:49