View Code? Open in Web Editor
NEW
Levelizer is an open source Android app that gives you haptic feedback when you're attempting to take an unlevel photo.
Home Page: https://play.google.com/store/apps/details?id=org.dutchaug.levelizer
levelizer's People
levelizer's Issues
Portrait upright and upside down is detected correctly, but either orientation in landscape is not.
It may be possible that the OP3's y-axis is not oriented correctly inside the device.
For some reason, both Levelizer and TalkBack enable and disable in unison. This only appears to occur on a Samsung Galaxy S II (GT-I9100G).
This is common on Samsung devices: the orientation of the device changes, causing gravity to point "upwards". This means that the x or y axis of the accelerometer has a negative velocity.
The instructions dialog is cropped vertically when the device is in landscape orientation, such that the text and continue button cannot be seen.
Open the camera, take a picture, turn off the screen without closing the camera app: Levelizer keeps giving haptic feedback.
Tested on Nexus 6P, Nougat preview.
Disabling the AccessibilityService programmatically is a bit of a challenge, but my thoughts are:
To disable: instruct CameraDetectionService to change its AccessibilityServiceInfo to only respond to its own package name.
To enable: revert the AccessibilityServiceInfo to the current implementation.
To apply the AccessibilityServiceInfo:
Invoke an accessibility event that the CameraDetectionService responds to.
Commit the new AccessibilityServiceInfo with setServiceInfo().
From Thanos Psaridis:
You should make this a widget so I can turn it on and off easily