Example using Google Maps Api
You need to get API Key Google Maps and enable:
- Google Maps Android API
- Google Places API for Android
- Google Maps Directions API
Create /res/value/google_maps_api.xml and add API key
<resources>
<string name="google_maps_api_key"
templateMergeStrategy="preserve"
translatable="false">AIzaSyBwA7************QHt5KWfevN</string>
</resources>
For securing safety API key add google_maps_api.xml to .gitignore
That's all you need.