How to use Google Maps API v2 with API level 10?

前端 未结 4 1508
忘掉有多难
忘掉有多难 2020-12-11 22:16

According to 1 the code posted there can be used for Android API 12 or later. I tried the code on an emulator having API level 10 (Google API platform 2.3.3) and I get the f

4条回答
  •  鱼传尺愫
    2020-12-11 23:05

    instead of using com.google.android.gms.maps.MapFragment use com.google.android.gms.maps.SupportMapFragment and for the Activity it will have to switched to be FragmentActivity as mentioned in the comment below

提交回复
热议问题