App + QAndroidService
-
Hi. My app has got an android service. The service is in a separate .so file. It uses a bluetooth device.
Its main is:int main(int argc, char *argv[]) { QAndroidService app(argc, argv); new QCMainFormService(); return app.exec(); }The app and the service works perfectly (they are in a different process).
If I minimize the app, after a while, the service will be killed.
This is the logcat output07-28 17:00:15.546 5502 5520 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x25 in tid 5520 (QtThread), pid 5502 (lock:qt_service) 07-28 17:00:15.569 389 3546 I ActivityManager: Process it.denisgottardello.LocalClock:qt_service (pid 5502) has died: fore SVC 07-28 17:00:15.566 389 389 I ActivityManager: type=1400 audit(0.0:205): avc: denied { getpgid } for scontext=u:r:system_server:s0 tcontext=u:r:crash_dump:s0:c512,c768 tclass=process permissive=1 07-28 17:00:15.571 389 406 W system_server: kill(-5502, 9) failed: No such processHow can I do in order to have my service working no stop?