Qt Android application running in background
-
wrote on 10 Jun 2015, 16:10 last edited by
Hello!
I'm trying to make a clock alarm for Android. I've encountered the following problem: if the application is turned on, and the user set the time for alarm and press the "back" button on the phone, the processes is killed. How can I handle this situation? I want the application to continue running in background?
-
Hello!
I'm trying to make a clock alarm for Android. I've encountered the following problem: if the application is turned on, and the user set the time for alarm and press the "back" button on the phone, the processes is killed. How can I handle this situation? I want the application to continue running in background?
wrote on 11 Jun 2015, 08:19 last edited by@SebiSebi2 For this use case I guess it would be best to intercept the back button event in native Java Android code and put the activity in the background instead.
Best,
Alex from V-Play -
wrote on 11 Jun 2015, 13:37 last edited by
And how can I put the activity in the background? If I overwrite closeEvent(QCloseEvent *) what should I write inside in order to make the application run in the background?
2/3