Android - SupportMapFragment with GoogleMaps API 2.0 giving IllegalArgumentException

前端 未结 11 1778
情书的邮戳
情书的邮戳 2020-11-27 04:17

I am trying to use the latest Map API 2.0 provided for Android. I am using the Support Library as I want to support Android 2.2. Following is my code:

Main A

11条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-27 04:53

    Use dialog.SetContentView() method in your activity's onCreate() cause when we tring to load.

    Dialog again it loads only dialog not the whole activity life cycle and leads it to exception of Duplicate id.

    Try it.

提交回复
热议问题