📌  相关文章
📜  设备所有者在站点上打开位置:stackoverflow.com - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:59.409000             🧑  作者: Mango

代码示例1
DevicePolicyManagerdpm = (DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE);
dpm.setSecureSetting(mDeviceAdmin, Settings.Secure.LOCATION_MODE, String.valueOf(Settings.Secure.LOCATION_MODE_HIGH_ACCURACY));