I've written an application which just locks the screen if is started, based on the Device Administration Tutorial.
So far so good, after I activate the device administration for the application I am able to lock the screen with the DevicePolicyManager.lockNow()
method.
It works fine on the emulator as well as on an Asus Transformer, however on devices with HTC Sense it just sends the device to standby mode - if I switch it on again I don't get the pasword- or unlock-gesture prompt.
Has anybody experienced something like that and knows how to really lock the device rather than just sending it to standby?