Unsolved Start third-party Android Service
-
I'm struggling to get a service started that is not part of my application.
All the examples I've seen are for a Qt service, but I like to start a java service from my Qt creator app.
In java you can use something like this:Intent serviceIntent = new Intent();
serviceIntent.setAction("com.sample.service");
startService(serviceIntent);What's the equivalent in Qt Creator C++?
btw, the service is exported and enabled in the manifest
-
Hi,
There's no Qt Creator C++, Qt Creator is just an IDE.
You may want to take a look at the dedicated Qt JNI classes to call Java methods.
-
I know it's an IDE but I'm programming in C++ and there does not seem to be an easy way of starting an external service; documentation and examples of JNI are not very comprehensive.
I would have thought someone has already done this and I'm not shooting for the moon here. -