Google map not showing in android activity?

前端 未结 8 1104
生来不讨喜
生来不讨喜 2020-12-19 19:40

In my android app I want to have a MainActivity with a google map occupying the entire screen.

My problem is that the google map does not display a map, only the go

8条回答
  •  忘掉有多难
    2020-12-19 20:14

    Google maps likes to get the different activity lifecycle states. So you should send it: map_view.onCreate(savedInstanceState) and map_view.onResume(). It also likes onPause(), onLowMemory(), onSaveInstanceState(outState), onDestroy() if they occur.

提交回复
热议问题