Skip to main content
5 events
when toggle format what by license comment
Aug 4, 2021 at 18:41 comment added jeoffman The setting wasn't working for me on Android10/Q but this method worked: stackoverflow.com/a/68055904/573377 DevicePolicyManager dpm = (DevicePolicyManager) getApplicationContext().getSystemService(Context.DEVICE_POLICY_SERVICE); ComponentName component = new ComponentName(getApplicationContext(), DeviceAdminReceiver.class); dpm.setGlobalSetting(component, Settings.Global.AUTO_TIME, enable ? "1" : "0");
Sep 5, 2017 at 14:45 comment added Chef Pharaoh There is also a Settings.Global.AUTO_TIME settings that you can also disable for auto date & time.
Jun 26, 2013 at 1:07 vote accept Dean MacGregor
Jun 26, 2013 at 1:07 history bounty ended Dean MacGregor
Jun 25, 2013 at 14:18 history answered t0mm13b CC BY-SA 3.0