![]() ![]() Retrieve a MapView instance from the map fragment using the getMapAsync(OnMapRead圜allback) method. Forward all the life-cycle methods from the activity containing the map view to the corresponding ones in map class. In the MainActivity.java file, you will need to import the Google Maps SDK. Implementation ':play-services-maps:17.0.0'Īdd a Google Maps API key inside the application section of the google_maps_api.xml file: Īdd a map fragment to the main activity: To display a map using the Google Maps SDK for Android, the following steps would be done:Įnsure Google Play services is installed.Īdd a dependency for the Google Maps service to the module's
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |