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);
35 if (
result == QtLoader.LoadingResult.Failed) {
36 Log.w(
QtNative.QtTAG,
"QtServiceLoader: failed to load Qt libraries");
41 if (
result == QtLoader.LoadingResult.Succeeded) {
46 }
catch (IllegalArgumentException e) {
47 Log.w(
QtNative.QtTAG, Objects.requireNonNull(e.getMessage()));