I already asked this question HERE before, but they misunderstood me. So now I try to be more explicit.
In the system settings of Android there is an option called "Automatically block." The default value is 5 seconds. I need to get this value programmatically.
Before you marked my question as a duplicate IT question, but this is not the same.
To be more clear, I put here 2 screenshots:
This is what I need ("Automatically block"):

This is what
Settings.System.getInt(getContentResolver(), Settings.System.SCREEN_OFF_TIMEOUT, DELAY);
coming back. ("Dream")

Hope this is more clear.
Thanks!
Slv3r source
share