Starting with Qt 5.7, you can create Android services using Qt. A service is a component that runs in background, so, it has no user interface. It is useful to perform long-term operations such as logging GPS, waiting for social media notifications, and so on. A service will continue to run even if the application that started it exits.
To create a service, do the following steps:
servicetag contains an
android:process=":some_name"attribute. It is needed to force the
serviceto run in a separate process than the
meta-datato pass some arguments to your
mainfunction in order to know which one is which.
meta-dataand set it to true (
Qt loads the
.so file defined in
meta-data, and calls the
main function with all the arguments set in
See Android Services documentation for more information.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: