Got it!
I used the SCREEN_OF_TIMEOUT method for the system class. Here is the code:
android.provider.Settings.System.putInt(getContentResolver(),
Settings.System.SCREEN_OFF_TIMEOUT, 60000);
The number 60000 refers the time to the screen timeout (in ms). Thanks!