ubuntu_user wrote: > Hi All, > I am looking for a method to get the current screen lock status. I > would like to know if it is locked or not. I have a live wall paper > that only need to work if the screen is unlock (i.e. full display is > on), otherwise, it should be just blank.
Watch for ACTION_SCREEN_ON and ACTION_SCREEN_OFF broadcast Intents. Or, for Android 2.1 devices and newer, use isScreenOn() in PowerManager. I realize that this is not necessarily identical to the "screen lock status", but it is as close as you are going to get, AFAICT. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.5 Available! -- 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

