我正在寻找一些示例代码,首先感谢,虽然我可以阅读api,这对其他人来说是一个很大的帮助,可以帮助我们提供简单的代码。
答案 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
};