[Android-development] Starting a service

Jason H jhihn at gmx.com
Wed Nov 28 16:09:33 CET 2018


I think that is specific to creating a service only.

You can of course use a regular android service (programed as a normal Android app) with Qt. Remember Qt just provides an Application and Activity. You can keep bolting on. However there are issues, like the OS can start your service without the activity loop running. Which means that not me able to interact like how you want. Synchronizing though your application's database won't work because the multithreaded writes will corrupt the database.



> Sent: Wednesday, November 28, 2018 at 9:04 AM
> From: "Filip Piechocki" <fpiechocki at gmail.com>
> To: android-development at qt-project.org
> Subject: [Android-development] Starting a service
>
> Hi,
> Can someone explain to me how should I now start an Android service
> made with Qt from an Android activity made with Qt and bind them so I
> can use Binder for communication between them? There is no example in
> Qt docs, all the classes from Android extras are described with one
> sentence and it is really difficult to tell how it should be done.
> I've found an tutorial on KDAB
> (https://www.kdab.com/qt-android-create-android-service-using-qt/) but
> it is over 2 years old and I am not sure if I now still need this
> static method in Java class to start the service or not?
> 
> Best Regards,
> Filip
> _______________________________________________
> Android-development mailing list
> Android-development at lists.qt-project.org
> https://lists.qt-project.org/listinfo/android-development
> 



More information about the Android-development mailing list