Richard Kiel and Roger Moore are the Moonraker Warriors on the cover of Screen On! In 1979
seen from Ireland

seen from United Kingdom

seen from United Kingdom

seen from Malaysia
seen from Australia

seen from United States
seen from South Korea
seen from Ireland

seen from United States
seen from China

seen from United States
seen from Brazil

seen from United Kingdom
seen from China
seen from Singapore

seen from Singapore
seen from South Africa
seen from United States
seen from Canada
seen from Malaysia
Richard Kiel and Roger Moore are the Moonraker Warriors on the cover of Screen On! In 1979
Android Power State Change
Android Power State Change
I forgot if I did this before or if it worked before. I add these two intent filters to AndroidManifest.xml
Intent.ACTION_SCREEN_ON Intent.ACTION_SCREEN_OFF
but it wouldn’t work. That’s super weird. Cause that’s a very basic and simple setting. After searching a little while, I realize that’s PowerManager setting. Check the Notifier.java here.
(more…)
View On WordPress
Screen On
Just open the flip cover to turn on screen. And close the flip cover to turn off screen. Screen on when the cover or something gets away from the proximity sensor. Screen off when the cover or something approaches the proximity sensor. This app do not need rooting or device administration (system app). So it is easy to install.
Ver 1.1
Download
Opera Mobile Store
Getjar
Mobango
neXva
Box.com
Aptoide
Amazon appstore
[Android] - 暫時讓app畫面不進入休眠狀態
一般來說有些app在安裝時,都會出現一個「防止手機進入待命狀態」
但是有時只是希望app在同步或是一些流程時,不想讓手機進入休眠
這時可以加入layout flag來讓app暫時不要進入待命狀態。
主要是加入此flag:FLAG_KEEP_SCREEN_ON
使用方式為在你需要暫時停止手機進入待命狀態的流程當中加入
// 此時暫時不讓手機進入待命狀態 getWindow().addFlags(android.view.WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
當流程執行完畢後,希望可以讓app回到自動進入待命狀態的話,此時在流程結束的地方加入
// 此時讓手機回復進入自動待命狀態 getWindow().clearFlags(android.view.WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
當然,如果希望app在執行的時候就是不要讓手機進入待命狀態的話,可以在Manifest加入User Permission:WAKE_LOCK