Saturday, 26 November 2016

Adding a Map to a Fragment in Android Studio

Adding a map to an activity in android studio is a piece of cake if you follow the documentation. However adding a map to a fragment is a different story. Once you have your fragment you need to:


  • Obtain your api key. and paste this information into your manifest. 
  • Set the version of gl Es in the manifest
  • Set permissions in the manifest
  • Create a frame layout in your xml file
  • Add a mapView to this layout
  • Implement onMapReadyCallBack in your java file and add methods
  • Configure your map.
All of this can be done in under 8 mins. Just watch the video below.



No comments:

Post a Comment