Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在布局 Activity 中启动导航地图?
你应该看看这个教程,它非常全面,stackoverflow 的格式不适合长篇教程。
一般来说,Google 提供了一个库,用于在您的应用程序中使用 Google 地图,称为 MapView。该示例的源代码可在此处获得。
更新:根据下面的评论,现在我更好地理解了这个问题,答案是你不能调用代码或在 android 中的另一个应用程序中重用代码。唯一官方的方式是使用 Intent 来调用整个Activity。(这是关于该主题的另一个线程。)