Did you look at the method ServiceState.setState() in the package
android.telephony? STATE_POWER_OFF gets you pretty close to what you
want: it turns the radio off.

On Oct 31, 10:59 pm, Anders Feder <[email protected]> wrote:
> Anyone? If it can't be done in any other way, is there by any chance any way
> to emulate that the 'end call' button has been pressed? (I've tried with
> dispatchKeyEvent() to my own activity, but that didn't do anything.)
>
> Thanks,
> Anders Feder
>
> 2009/10/24 Anders Feder <[email protected]>
>
> > Hello,
>
> > Is it possible to programmaticly send the device into sleep mode (i.e. like
> > when pressing the [end call] button once so screen the turns off and locks)?
>
> > Thanks in advance,
> > Anders Feder

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en

Reply via email to