[android-beginners] Re: Sleep mode

2009-11-05 Thread Happy Stan
Hello: Is the ServiceState.setState() workable? I test setState() in ym device, and it seems not work. Many thanks On 11月1日, 下午4時52分, Indicator Veritatis wrote: > Did you look at the method ServiceState.setState() in the package > android.telephony? STATE_POWER_OFF gets you pretty close to w

[android-beginners] Re: Sleep mode

2009-11-05 Thread Happy Stan
Hello: Is the function of ServiceState.setState() workable? I tried to setState() in my device, it seems not work. Best Regards On 11月1日, 下午4時52分, Indicator Veritatis wrote: > Did you look at the method ServiceState.setState() in the package > android.telephony? STATE_POWER_OFF gets you prett

[android-beginners] Re: Sleep mode

2009-11-01 Thread Indicator Veritatis
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 wrote: > Anyone? If it can't be done in any other way, is there by any chance any way > to emulate

[android-beginners] Re: Sleep mode

2009-10-31 Thread Anders Feder
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 > Hello, > > Is it possible to