get Screen Dormant Time - Android Phone

Android examples for Phone:Screen

Description

get Screen Dormant Time

Demo Code


//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);
    }/* www. j  a v  a2s  . co  m*/
}

Related Tutorials