Location API android开发意味着什么?
class MainActivity : Activity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
val locationManager = getSystemService(Context.LOCATION_SERVICE) as LocationManager
val provider=locationManager.getProvider(LocationManager.GPS_PROVIDER)
provider.supportsBearing()
}
}