我安卓网上的方法用powermanage类但是不管用,还有那个常量被废弃了用什么代替,我是在广播接收器里的对话框的确定按钮的监听事件里写的这个代码
http://blog.csdn.net/andylao62/article/details/8460873