Skip to content

unknownmoon/android-cry-for-light

Repository files navigation

Cry for Light

Note that this project is still in pre-stable stage, but it fits my personal demand now, and the main purpose of this little project is to try Android project.
In that case, this project may not be updated later, if no critical issue or non-trivial requirements.

GitHub version

A humanitarian APP against sound activated light switches in some scenes.

Intention

In some scenarios, one may find that the sound activated lights are very annoying, since the small noise one is making cannot turn it on (may due to the frequencies of the sound), and one has to make loud noise periodically to keep the lights on.

This app is then used to keep the lights on, by taking advantage of the sensors (mostly the light sensor) of one's Android phone. Once the app detects the luminance is lower than the configured threshold, it will scream, literally, with the configured sound.

Highlights

Warning: Only tested against Nexus 5X under Android 6.0.1 (API version 23), in portrait mode.

  • Use notification to pause/resume/exit the service, even the screen is locked. once it's started.
  • Functional after screen lock and clean the main screen from the recent task stack (the Overview Screen).
  • In the main screen, other than start/exit the service.
    • Display the current brightness in Luminance.
    • Set a brightness threshold to trigger the sound.
    • Set the maximum value of the brightness threshold to change the scale of the brightness threshold slider.
    • Set a sound level.
    • Choose a sound file.

Downloads

Too lazy to publish to Android market

Download APK file from here and install it.

Features (Paused..)

Feature Level - Core

  • When the environment luminance is lower than a configurable threshold, a trigger sound will be played till the environment luminance is back above the threshold.
  • When the environment luminance is lower than a configurable threshold, a trigger sound will be played continuously till the environment luminance is back above the threshold.

Feature Level - Basic

  • The core features are functional when the APP is active.
  • Display the current luminance information for referencing to.
  • The threshold can be configured easily configured by using slider.
  • The trigger sound can be selected from the system storage.

Feature Level - Enhancement

  • Features are functional when the APP is running either foreground or background.
  • Trigger sound generator can provide a range of sounds in different frequencies.
    • Controlled by sliders.
    • With a set of pre-set frequencies.

Feature Level - Advanced

  • The APP is running as a background service, and displayed in the notification bar when running.
  • The user can pause/resume/stop the service in the notification bar directly, while stop also stop the background service.
  • Automatically stare/stop service by sensing the user behaviours: pick up to stop, hand off to start (after 2 seconds delay perhaps).

About

[usable now for Android 6.x & not-being-maintained] A humanitarian APP against sound activated light switches in some scenes.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages