Sorry.. its goToSleep() is the API from PowerManagerService

On Tue, Feb 9, 2010 at 7:59 PM, Abhay dey <abhay.gauranga....@gmail.com>wrote:

> goToLockScreen is the API I found, but throws security exception. No luck
> so far
>
>
> On Tue, Feb 9, 2010 at 11:00 AM, San <sanees...@gmail.com> wrote:
>
>> Abhay,
>>
>> Any update on this? Did you get how to lock?
>>
>>
>> On Feb 1, 9:55 am, Abhay dey <abhay.gauranga....@gmail.com> wrote:
>> > Hi All,
>> >          As we know that Android phone gets locked after screen timeout.
>> But
>> > I want to lock the phone on demand as well. i.e. without waiting for
>> screen
>> > timeout to occur..  As in nexus android phone there is hard button on
>> top
>> > for making screen turn off and lock the phone.  i have to do same
>> > functionality but by using soft key i.e. in a programmatic way. What are
>> the
>> > APIs or routines that can help me ? Can someone point me for getting
>> this
>> > functionality ?
>> >
>> > Thanks in advance,
>> > Abhay
>>
>> --
>> 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
>>
>
>

-- 
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