79124133

Date: 2024-10-25 03:02:18
Score: 1
Natty:
Report link

code:

// Google Map View
mMapView = findViewById(R.id.map_view)
// Google Map View
 mMapView = findViewById(R.id.map_view)
// Google Map Key
val mapKey = BuildConfig.MAPS_API_KEY
if(mapKey.isNotEmpty()){
    val mapViewBundle = savedInstanceState?.getBundle(mapKey)
    mMapView.onCreate(mapViewBundle)
}
mMapView.getMapAsync(this)
// FusedLocationProviderClient
mFusedLocationClient = LocationServices.getFusedLocationProviderClient(this)
// 
mGeocoder = Geocoder(this, Locale.getDefault())
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Clarence Wu