我正在寻找一些以感谢开头的示例代码,尽管我可以阅读api,这对于其他人提供简单代码的帮助将是一个很大的帮助。

最佳答案

摘自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

08-17 17:38