Hi, I have checked this on Froyo & GingerBread versions. A otherwise working device admin app fails to lock the emulator / device after the max inactivity time specified by using the API setMaximumTimeToLock(). Ensured that the uses-policy entry has a <force-lock> tag in it.
Based on some other posts, I also tried giving the WRITE_SETTINGS and WRITE_SECURE_SETTINGS permission in the manifest. But that too had no effect. Besides, there are no log-cat entries to show why this has failed. What could be the issue here? Regards, SB -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

