my application consumes a lot of power since it calculates gps updates frequently. I want to cut this high power usage down as far as possible if the application is not activly used by the user. This means that I could set the update frequency down to a minimum if the application is in the background or the screensaver is active.
From other postings in this forum I learned that it is not possible to determine whether the screensaver is on or not.
So I would like to try if it is possible to enter a "power saving mode" by listening to the keystrokes. If there are no keystrokes for a minute -> enter power saving mode and if there are keystrokes -> end power saving mode.
The problem with this approach in my application is, that I am using the high level API and I am not notified about every single keystroke. So here is the question:
Can I somehow use the high and low level api at the same time and still be able to use commandlisteners?
Thanks in advance for your answers