开发者

I want to the information about my screen (if it's locked or not), Android

i'm making a program that disables your wifi when you lo开发者_如何转开发ck your screen but i can't find an object the holds that kind of information (wether it's locked or not)


In most Android phones Wifi is turned off a few minutes after the screen is locked.
This setting can also be controlled by the user in Settings->Wireless Netowrks->WiFi->Advanced.

Anyway, if you want to tell when the screen is locked, register to receive the ACTION_SCREEN_OFF broadcast intent.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜