android.provider.Settings.
System.getInt(
                        mContentResolver,
                        Settings.System.LOCK_PATTERN_ENABLED, 0) == 1;

This should give you boolean value, whether PATTERN is enabled or not.


On Wed, Mar 3, 2010 at 9:54 PM, Jacob <jacobroutolo...@gmail.com> wrote:

> Hi all
>
> Thanks in advance.
>
> 2 questions
>
> 1) Is there way to find if the Android "unlock pattern screen" is ON/
> OFF thru programming? My Aim is to send some messages from my
> application to a server thru network only when the user had unlocked
> this password kind of screen (device).
>
> 2) Is there any Android/Java class to generically find (query) if
> certain application window is currently on top like question 1? In
> other words, any Windows manager class to get some info/enumerate
> windows that are currently being displayed/being in use.
>
> Kind regards.
> Jacob
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
...Swapnil

|| Hare Krishna Hare Krishna Krishna Krishna Hare Hare ||
|| Hare Rama    Hare Rama   Rama   Rama    Hare Hare ||

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to