如何在旧的android设备上实现不在后台运行的LocationListener?
我的应用程序一直被谷歌审查小组标记为请求旧设备上的后台位置。我正在使用LocationListener的一个简单实现和一个声明为:如何在旧的android设备上实现不在后台运行的LocationListener?,android,kotlin,Android,Kotlin,我的应用程序一直被谷歌审查小组标记为请求旧设备上的后台位置。我正在使用LocationListener的一个简单实现和一个声明为: val locationManager = Helpers.context.getSystemService(Context.LOCATION_SERVICE) as LocationManager locationManager是我的应用程序一直在后台访问位置的原因吗?此变量在我的活动的onCreated方法上启动
val locationManager = Helpers.context.getSystemService(Context.LOCATION_SERVICE) as LocationManager
locationManager是我的应用程序一直在后台访问位置的原因吗?此变量在我的活动的onCreated方法上启动