![](/img/trans.png)
[英]I want to track complete information about the usage of my android application
[英]I want to the information about my screen (if it's locked or not), Android
我正在制作一個程序,當您鎖定屏幕時會禁用wifi,但是我找不到包含此類信息的對象(無論它是否被鎖定)
在大多數Android手機中,屏幕鎖定后幾分鍾,Wifi就會關閉。
用戶也可以在Settings->Wireless Netowrks->WiFi->Advanced
控制此設置。
無論如何,如果您想告訴屏幕何時被鎖定,請注冊以接收ACTION_SCREEN_OFF廣播意圖。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.