Default Google Map Activity for Android

This Activity code will provide basic functionality for including a Google Map using a SupportMapFragment.

The Google Maps V2 API includes an all-new way to load maps.

Activities now have to implement the OnMapReadyCallBack interface, which comes with a onMapReady() method override that is executed every time we run SupportMapFragment.getMapAsync(OnMapReadyCallback); and the call is successfully completed.
Maps use Markers, Polygons and PolyLines to show interactive information to the user.

Notice that the code above inflates a layout, which has a SupportMapFragment nested inside the container Layout, defined with an ID of The layout file is shown below:


This is the Basic Google Map integration

Leave a Reply

Your email address will not be published. Required fields are marked *

6 + twelve =

Comment moderation is enabled. Your comment may take some time to appear.