开发者

Using MapView on non-"Google Market"/non-"Google featured" phones

开发者 https://www.devze.com 2023-02-05 03:43 出处:网络
Is it possible to use the MapView to build on GMaps-basedapps with开发者_Go百科out having Google Market and the other Google tools installed?

Is it possible to use the MapView to build on GMaps-based apps with开发者_Go百科out having Google Market and the other Google tools installed?

Do i need to have a custom ROM on such phones with that Google tools?

Are there some other possibilities to use Maps and a MapView-like-thing?

Especially some Tablet devices like Notion Ink Adam , Advent Vega und Point of View Tegra lack this Google Tools.


If the device does not have Google Maps, you cannot create MapView-related apps.

However, bear in mind that there is a lightly-documented android:required attribute on the <uses-library> tag. If you set that to be false, your app should still load on MapView-less devices. You can use Class.forName() to see if the MapView class exists -- if it does not, you can substitute something else (e.g., WebView with the Web version of Google Maps, OpenStreetMap) or disable the map features entirely.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号