I’d like to try to develop an app (have had a short “Android App training” some years ago and some experience with general python programming).
Using a “Moto G9 play” I’m enthusiastic of one feature:
If you put down the Moto G9 “face down” on a table, the “don’t disturb”-mode is activated, but Bluetooth keeps enabled, which is nice for hearing music. This feature I’d like to transport similarly to Sailfish for my Xperia 10 III.
If you put down a Xperia 10 III on a horizontal surface (+/- 5°) with the display down (“face down”), the app should do the following automatically:
- recognize, that the phone is put “face down” on a surface
- confirm that with 2 short vibration alarms
- detect: mobile data enabled ? → save the actual setting, disable mobile data
- detect: wifi enabled ? → save the actual setting, disable wifi
- detect: do not disturb-mode enabled ? → save the actual setting, enable do not disturb
- detect: Bluetooth enabled ? → save the actual setting, disable Bluetooth (if configured so by user for e.g. in checkboxes)
After that, the phone should check the state of lying on a table every 0,5s. If the phone is picked up, this should be again confirmed by a vibration and all functions, that have been disabled before, should be activated again (without any further interaction of the user with the phone).
As written in other topics, active WiFi/mobile Data drains the battery much too fast. A main purpose of this future app would be to prevent this battery discharging.
If such an app is invented, perhaps the user could choose in “options” in a checkbox, which things should be disabled by “face down” (I assume that as a feature request).
- Where should I begin reading to learn about app-programming?
- Which IDE should I use (on Ubuntu 20.04)?
- How does the sensors in Xperia 10 III work to detect the horizontal state?
- Is there anybody, who would help me to invent such an app ?