[SailfishDevel] Pause application on system events

sfietkonstantin at free.fr sfietkonstantin at free.fr
Fri Aug 8 08:14:44 UTC 2014

Hi Riccardo,

At the moment, you can use nemo-keepalive [1] to make your phone not to enter in deep sleep, as well as controlling the screen state etc (you can even make the phone's screen stay permanently on).

nemo-keepalive is not allowed in harbour, so you need to dynamically (rpath) or statically link it. Depending on the license of your app, you might chose the former or latter option.

As for incoming calls, I don't know how to handle this. Maybe it is handled automatically with pulseaudio ? 


[1] https://github.com/nemomobile/nemo-keepalive

----- Mail original -----
De: "Riccardo Ferrazzo" <rferrazz at develer.com>
À: devel at lists.sailfishos.org
Envoyé: Lundi 4 Août 2014 08:51:53
Objet: [SailfishDevel]  Pause application on system events

I'm writing a Metronome application just to get started with Sailfish.
I want the application to not to pause when the screens turns black or when it 
is minimized but to pause on incoming calls or alarms ringing.

At the moment i'm using this:

    onApplicationActiveChanged: {
            metronome._running = false;

But i want to be less restrictive. can someone give me any hint on how to 
acheive it?

Riccardo Ferrazzo
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscribe at lists.sailfishos.org

More information about the Devel mailing list