Workaround One:
Use transparent Themes
Click Project--in the build settings to find the build Android APK section, click Create Templates creating a Androidmanifest.xml
<?xml version= "1.0"? ><manifest package= "Org.qtproject.example" xmlns:android= "http://schemas.android.com /apk/res/android "Android:versionname=" 1.0 "android:versioncode=" 1 "android:installlocation=" Auto "> < Application android:hardwareaccelerated= "true" Android:name= "Org.qtproject.qt5.android.bindings.QtApplication" Android:label= "--%%insert_app_name%%--" > <activity android:configchanges= "orientation|uimode|scr Eenlayout|screensize|smallestscreensize|layoutdirection|locale|fontscale|keyboard|keyboardhidden|navigation "an Droid:name= "Org.qtproject.qt5.android.bindings.QtActivity" android:label= "--%%insert_app_name%%--" android:screenorientation= "Unspecified" android:launchmode= "Singletop" Android:theme= "@android: Styl E/theme.translucent.notitlebar "<!--Add the above one, just set the black screen to be transparent, start or slow--- <!--@android: style/theme.translucent-- <!--@android: Style/theme.translucent.notitlebar--<!--@android: Style/theme.translucent. Notitlebar.fullscreen-> <intent-filter> <action android:name= "an Droid.intent.action.MAIN "/> <category android:name=" Android.intent.category.LAUNCHER "/> </intent-filter> <!--application Arguments--<!--meta-data Android:name= "Android . app.arguments "android:value=" arg1 arg2 arg3 "/-<!--application arguments--<meta -data android:name= "Android.app.lib_name" android:value= "--%%insert_app_lib_name%%--"/> <meta-data Android Oid:name= "android.app.qt_sources_resource_id" android:resource= "@array/qt_sources"/> <meta-data android:n Ame= "Android.app.repository" android:value= "Default"/> <meta-data android:name= "Android.app.qt_libs_resou rce_id "Android:resource= "@array/qt_libs"/> <meta-data android:name= "android.app.bundled_libs_resource_id" android:resource= "@arr Ay/bundled_libs "/> <!--Deploy Qt Libs as part of the package--<meta-data android:name=" a Ndroid.app.bundle_local_qt_libs "Android:value="--%%bundle_local_qt_libs%%--"/> <meta-data android:name = "android.app.bundled_in_lib_resource_id" android:resource= "@array/bundled_in_lib"/> <meta-data android:n Ame= "android.app.bundled_in_assets_resource_id" android:resource= "@array/bundled_in_assets"/> <!--Run WI TH local libs---<meta-data android:name= "Android.app.use_local_qt_libs" android:value= "--%%use_local_q t_libs%%--"/> <meta-data android:name=" Android.app.libs_prefix "android:value="/data/local/tmp/qt/"/> <meta-data android:name= "Android.app.load_local_libs" android:value= "--%%insert_local_libs%%--"/> <meta-data andRoid:name= "Android.app.load_local_jars" android:value= "--%%insert_local_jars%%--"/> <meta-data android: Name= "Android.app.static_init_classes" android:value= "--%%insert_init_classes%%--"/> <!--Messages map ---<meta-data android:value= "@string/ministro_not_found_msg" Android:name= "Android.app.ministro_not_fo Und_msg "/> <meta-data android:value=" @string/ministro_needed_msg "Android:name=" android.app.ministro_need Ed_msg "/> <meta-data android:value=" @string/fatal_error_msg "android:name=" android.app.fatal_error_msg "/& Gt <!--Messages Maps--<!--Splash Screen--<!--meta-data Android:name= "android.a Pp.splash_screen_drawable "android:resource=" @drawable/logo "/-<!--meta-data Android:name=" Android.ap P.splash_screen_sticky "android:value=" true "/-<!--splash screen--<!--Background Running-<!--warning:changing This value to true cause unexpected crashes if the Application still try-to-draw after "applicationstatechanged (qt::applicationsuspended)" Signal is sent! --<meta-data android:name= "android.app.background_running" android:value= "false"/> <!- -Background running--<!--auto Screen scale factor---<meta-data android:name= "Android Oid.app.auto_screen_scale_factor "android:value=" false "/> <!--Auto Screen scale factor- <!--extract Android style--<!--available android:values: * full-useful qwidget & Quick Controls 1 Apps * minimal-useful for Quick controls 2 apps, it's much faster than "full" * None-useful for apps that don ' t use any of the above Qt modules--- <meta-data android:name= "Android.app.extract_android_style" android:value= "full"/> <!--extract Android OID Style-</activity> <!--for adding service (s) please check:https://wiki.qt.io/androidservices-- > </application> <uses-sdk android:minsdkversion= "android:targetsdkversion="/> <supports -screens android:largescreens= "true" android:normalscreens= "true" android:anydensity= "true" android:smallscreens= " True "/> <!--The following comment would be a replaced upon deployment with default permissions based on the Depende Ncies of the application. Remove the comment if you does not require these default permissions. -<!--%%insert_permissions-<!--The following comment'll be replaced upon deployment with DEFAU Lt features based on the dependencies of the application. Remove the comment if you does not require these default features. -<!--%%insert_features-->≪/manifest>
Workaround Two:
Replace a theme with a picture
Create a new Style.xml file in the Res/values file directory with the following contents <?xml version= ' 1.0 ' encoding= ' utf-8 '? ><resources><style name = "Theme.appstartload" parent= "Android:theme" > <item name= "android:windowbackground" > @drawable/logo</ item> <!--@drawable/logo ensure android\res\drawable-hdpi\logo.png presence-<item name= "Android:windownot Itle ">true</item></style><style name=" theme.appstartloadtranslucent "parent=" Android:Theme " > <item name= "android:windowistranslucent" >true</item> <item name= "Android:windownotitle" > True</item></style></resources> then applies the two topics defined above in Androidmanifest.xml, adding the following locations <application Android:theme = "@style/theme.appstartloadtranslucent" ><activity android:theme= "@style/theme.appstartload" > <!--Splash screen--<!--<meta-data Android:name= "Android.app.splash_screen_draw Able "android:resource=" @drawable/logo "/>-<!--<mEta-data android:name= "Android.app.splash_screen_sticky" android:value= "true"/>-<!--splash screen and//This above is to add a boot image
Solution Three
https://falsinsoft.blogspot.com/2017/07/qml-show-android-native-splash-screen.html
Qt for Android to start a short black screen or white screen problem how to solve?