21 if (
QtNative.getStateDetails().isStarted) {
23 "A QtService tried to start in the same process as an initiated " +
24 "QtActivity. That is not supported. This results in the service " +
25 "functioning as an Android Service detached from Qt.");
32 QtServiceLoader loader = QtServiceLoader.getServiceLoader(
this);
34 if (
result == QtLoader.LoadingResult.Succeeded) {
35 QtNative.startApplication(loader.getApplicationParameters(),
36 loader.getMainLibraryPath());
38 }
else if (
result == QtLoader.LoadingResult.Failed) {
39 Log.w(
QtNative.QtTAG,
"QtServiceLoader: failed to load Qt libraries");
42 }
catch (IllegalArgumentException e) {
43 Log.w(
QtNative.QtTAG, Objects.requireNonNull(e.getMessage()));