<?xml version="1.0" encoding="utf-8"?>
<com.google.android.maps.MapView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/mapview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:clickable="true"
android:apiKey="YOUR API KEY"
/>
这是 Google map view 的 XML 代码,需要在 AndroidManiFest.xm 添加什么代码才能在 google map 中找 API key ?
“找API key”不是很理解,正常只要把从google map上注册的api key填入 android:apiKey="申请的api key"就可以,一般开发者不需要手动去获取这个api key,因为google map的api已经封装好了。