Im looking for some sample codes to start with thanks, although i can read the api ,this will be a big help for othe开发者_JAVA技巧rs to help with a simple code.
Taken from the API Demo:
// 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
};
Ref: DeviceAdminSample.java
精彩评论