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 ? 

Regards,
Lucien

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


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

Hi, 
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: {
        if(!applicationActive)
            metronome._running = false;
    }

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

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

Reply via email to