18 if (QtNative.getStateDetails().isStarted) {
20 "A QtService tried to start in the same process as an initiated " +
21 "QtActivity. That is not supported. This results in the service " +
22 "functioning as an Android Service detached from Qt.");
26 QtNative.setService(
this);
28 QtServiceLoader loader =
new QtServiceLoader(
this);
29 loader.loadQtLibraries();
30 QtNative.startApplication(loader.getApplicationParameters(), loader.getMainLibraryPath());
31 QtNative.setApplicationState(QtNative.ApplicationState.ApplicationHidden);