Android examples for User Interface:Screen Dormant
get Screen Dormant Time
//package com.java2s; import android.content.Context; import android.provider.Settings; public class Main { public static int getScreenDormantTime(Context context) { return Settings.System.getInt(context.getContentResolver(), Settings.System.SCREEN_OFF_TIMEOUT, 30000); }/*from w ww.j a va2 s .c om*/ }