I want to get default screen timeout programmatically.
I know how to set screen timeout programmatically by using below code.
android.provider.Settings.System.putInt(getContentResolver(), Settings.System.SCREEN_OFF_TIMEOUT, <Value for Timeout>);
But I am not able to get default screen timeout from settings.

You need to use getInt() for that
Settings.System.getInt(getContentResolver(),
Settings.System.SCREEN_OFF_TIMEOUT))
Reference
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With