1. Copy the following file: "build/outputs/apk/app-debug.apk" to your android device.
2. In your android device: Go to Settings -> Security -> Allow installation of apps from unknown sources
3. Install the application using the app-debug.apk file
1. A threshold and a current lighting value are supplied to the algorithm.
2. For the first set amount of times we receive a lighting value, we add it to a sum and do nothing else.
3. When we have enough values, we calculate the user's current environment average
4. We calculate the actual threshold ((100 - threshold) / 100)
5. If the lighting value is greater than the user's current average + the actual threshold, we recalculate the average
6. If the lighting value is less than the user's current average - the actual threshold, we warn them about a possibility of danger
7. If the lighting value is within these two limits, the user is persumed in a safe state
This is the end of the android application's README file. For information regarding the desktop client, please see the relative repository here