android – 在调用WifiManager startScan时抛出SecurityException
我正在使用AlarmManager发布的PendingIntent(使用setRepeating)每隔几分钟启动WiFi扫描(使用IntentService). 在大多数设备上,在大多数情况下,没有问题. 但是,在几个设备上,我收到以下错误(无法在任何测试设备上重现错误,这是用户设备的崩溃日志): java.lang.RuntimeException: Unable to start servic