Android: save the service under QtNative with QtNative.setService()
Otheriwse Qt C++ code will not be able to find it. Task-number: QTBUG-115016 Change-Id: Id3a2efb1f33cb60a523359e1ad646a394e24397e Reviewed-by: Petri Virkkunen <petri.virkkunen@qt.io> Reviewed-by: Janne Juntunen <janne.juntunen@qt.io> Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> (cherry picked from commit 7996a3fc7f408a2f92b103f6d03d172b1f0d9295) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
c8df6e18df
commit
482af5a431
@ -25,6 +25,8 @@ public class QtServiceBase extends Service {
|
||||
return;
|
||||
}
|
||||
|
||||
QtNative.setService(this);
|
||||
|
||||
QtServiceLoader loader = new QtServiceLoader(this);
|
||||
loader.loadQtLibraries();
|
||||
QtNative.startApplication(loader.getApplicationParameters(), loader.getMainLibrary());
|
||||
|
Loading…
x
Reference in New Issue
Block a user