get Lock Screen Timeout - Android User Interface

Android examples for User Interface:Screen Lock

Description

get Lock Screen Timeout

Demo Code


//package com.java2s;

import android.content.Context;

import android.provider.Settings;

public class Main {
    public static long getLockScreenTimeout(Context context) {
        return Settings.Secure.getLong(context.getContentResolver(),
                "lock_screen_lock_after_timeout", 0);
    }/*from  w w w  .  java2  s  .c om*/
}

Related Tutorials