goToLockScreen is the API I found, but throws security exception. No luck so far
On Tue, Feb 9, 2010 at 11:00 AM, San <[email protected]> wrote: > Abhay, > > Any update on this? Did you get how to lock? > > > On Feb 1, 9:55 am, Abhay dey <[email protected]> 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 [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > 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 [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

