SupportMapFragment in a fragment? (help)

+1 Linus Lindström · February 2, 2016
ive got a navigation drawer and 3 fragments, i want to make one of the fragments a google map.

i i couldn't get the getMapAsync() to work etc.

Should i use a fragment for the map or can i do it in a other (an better) way?


Post a Reply

Replies

Oldest  Newest  Rating
0 David Frenzel · February 4, 2016
I suggest you have a look at this:
https://developers.google.com/android/reference/com/google/android/gms/maps/MapFragment?hl=en
and that:
https://developers.google.com/maps/documentation/android-api/

Google suggests you use the map in a MapFragment, so this should be the best way to do it!

David
  • 1

Java / Android Development

124,721 followers
About

Very popular language used to create desktop applications, website applets, and Android apps.

Links
Moderators
Bucky Roberts Administrator