Waking up at night, looking for the time, and being flash-blinded by the phone screen?
Turn an old AMOLED phone into a night clock, with eyes-saving features.
Screen brightness is reduced to minimum to prevent eyes strain in complete darkness and the default clock color is red, to keep pupils from contracting.
Note: this is not an alarm watch: you can continue to use the system clock, on the same phone, for that.
Some care has been applied to preserve AMOLED displays from burn-in:
The clock is slowly moved across the screen, so it won't hit always the same pixels
All screen pixels are turned off in a rotating scheme once a second
This app uses immersive mode, to remove Android interface elements from screen and uses a gesture to exit to avoid unwanted touches.
SleepClock uses the following technologies:
- B4XPages
- B4XPreferences
- ViewEx
- BitmapCreator
- Localizator (English/Italian)
- ASViewPager
While B4XPages doesn't natively support dynamic switching between portrait and landscape, the app retains the orientation the phone is, at app startup
[B4XPages] Lock screen orientation based on how device is held when App is started.
I have an App that can handle both orientations, so I wanted the user's preference to be reflected in how the App was oriented. I searched the Forum, but I couldn't find what I needed. In "Main" Activity prior to initializing page manager do this. 'set... #SupportedOrientations...
www.b4x.com
Available for free on the Play Store at https://play.google.com/store/apps/details?id=com.hybridassistant.sleepclock