Я хочу показать карту в моей деятельности.
В google map V1 мы используем -
<com.google.android.maps.MapView
android:id="@+id/mapview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:apiKey="@string/api_map_key"
android:clickable="true"
android:enabled="true" />
и продлить действие с помощью класса MapActivity.
В Versing 2 он использует фрагмент вместо mapview и должен расширять активность с помощью FragmentActivity вместо обычной Activity. ex-
<fragment
android:id="@+id/map"
android:layout_width="match_parent"
android:layout_height="match_parent"
class="com.google.android.gms.maps.SupportMapFragment" />
Теперь я могу использовать тот же способ создания mapview вместо Fragment, используя версию 2.()
Можно ли использовать MapView с помощью V2?