Qt sample app shows black screen when running as start-up on Android device
-
I want to replace the Android default launcher with our own Qt app, so I create a simple demo, and:
in qtcreator:
run settings -> create AndroidManifest.xml
then add
<category android:name="android.intent.category.HOME"/>
<category android:name="android.intent.category.DEFAULT" />then I pack the test app with qt deploy, and push the apk file into /system/app/
then I removed the default Launcher2.apk
so there's only our test app with HOME category in the device.after reboot, our test app'll get stunk at the black screen (like console UI),
and if I press the back key it'll crash.this app works well if I start it normally with launcher,
and I've tried to replace the default Launher with native java app demo, and it also works well.Anyone knows why?