In my application, I want to check whether the user has set the password in their android device or not? I tried using device admin apis m not able to get those information. Is there any other way?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How can I create this custom Bottom Navigation on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
Device administrator doesn't allow you to check whether device has lock screen password (or pattern ...) directly.
However you can do it indirectly.
DevicePolicyManager allows you to set/get required password quality level and check whether is password sufficient.
Your device admin will need to use limit-pasword policy:
And you should definetely read this Device Administrator Guide.