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 <[email protected]> wrote:
> 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 theradiooff.
>
> 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 turnsoffand 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