简体   繁体   English

集成谷歌地图android

[英]Integrate google map android

I'm developing an app and I'm trying to integrate to my app a google map.我正在开发一个应用程序,我正在尝试将谷歌地图集成到我的应用程序中。 I'm reading that I need to create a special app at the beggining.我读到我需要在开始时创建一个特殊的应用程序。 I tried to ignore it and tried to integrate it anyway.我试图忽略它并尝试集成它。 But when I try to extend my class with MapActivity, it doesn't find it.但是当我尝试使用 MapActivity 扩展我的类时,它没有找到它。 I generated the Key, Google Play Service is up to date.我生成了密钥,Google Play 服务是最新的。 I probably miss something.我可能会错过一些东西。

Thanks for the help.谢谢您的帮助。

MapActivity was part of the Google Maps Android v1 API which is now deprecated. MapActivity 是 Google Maps Android v1 API 的一部分,现已弃用。

Use MapFragment if possible如果可能,请使用 MapFragment

https://developers.google.com/maps/documentation/android-api/ https://developers.google.com/maps/documentation/android-api/

You need the new integration in Google map you want to use the new Google map api in android.您需要在 Google 地图中进行新的集成,才能在 android 中使用新的 Google 地图 api。

So follow below link for integration google map with "MapFragment".因此,请按照以下链接将谷歌地图与“MapFragment”集成。 http://www.tutorialspoint.com/android/android_google_maps.htm http://www.tutorialspoint.com/android/android_google_maps.htm

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM