Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt sample app shows black screen when running as start-up on Android device

Qt sample app shows black screen when running as start-up on Android device

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 3 Posters 1.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    missingsailor
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    1
    • M Offline
      M Offline
      Moumoune
      wrote on last edited by
      #2

      I have exactly the same problem.

      1 Reply Last reply
      0
      • fecubF Offline
        fecubF Offline
        fecub
        wrote on last edited by
        #3

        Connect your phone with your computer. Activate debbuging on your phone. Start DDMS on your Computer launch the application again and read the error message which is in DDMS shown. It's difficult to say what is wrong.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved