Is there an example somewhere for the CodenameOne how to keep an application awake (eventually running in background) or this needs to be done by a native code? The problem which I'm experiencing is when the screen goes off, the application goes sleep as well for a while, it periodically wakes up, for example the application should once in a minute give a tone (signal), this part is working fine when the screen is on, but when the screen goes off, the tone is executed about every ten minutes.
Thank you in advance for any help.
Rafał Jackiewicz