Android 2.2的示例DevicePolicyManager代码有效吗?

时间:2010-08-31 11:04:52

标签: java android

我正在寻找一些示例代码,首先感谢,虽然我可以阅读api,这对其他人来说是一个很大的帮助,可以帮助我们提供简单的代码。

1 个答案:

答案 0 :(得分:0)

取自API演示:

    // Password quality spinner choices
    // This list must match the list found in 
    // samples/ApiDemos/res/values/arrays.xml
    final static int mPasswordQualityValues[] = new int[] {
        DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED,
        DevicePolicyManager.PASSWORD_QUALITY_SOMETHING,
        DevicePolicyManager.PASSWORD_QUALITY_NUMERIC,
        DevicePolicyManager.PASSWORD_QUALITY_ALPHABETIC,
        DevicePolicyManager.PASSWORD_QUALITY_ALPHANUMERIC
    };

参考:DeviceAdminSample.java