什么是方位定位?

时间:2019-05-26 09:12:44

标签: android

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()

    }
}

0 个答案:

没有答案