开发者

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

开发者 https://www.devze.com 2023-01-10 18:18 出处:网络
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 phon

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

精彩评论

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