Android-通过GPS或者网络获取当前位置 kotlinprivate fun getLocation(context: Context): Location {
val locMan = context.getSystemService(Context.LOCATION_SERVICE) as LocationManager
val checkCameraPermission = ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)
&nbs...