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. Android API - 35 issues in Qt 5.15.2
Forum Updated to NodeBB v4.3 + New Features

Android API - 35 issues in Qt 5.15.2

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
15 Posts 5 Posters 1.7k Views 1 Watching
  • 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.
  • ekkescornerE ekkescorner

    @Stamp_it thx testing this.
    so it seems you should try the other way by @bchimp as discussed at Qt Discord Server:
    in your android templates directory under res/values/themes.xml you put this

    <resources xmlns:tools="http://schemas.android.com/tools">
      <style name="Theme.rando" parent="android:Theme.DeviceDefault.DayNight">
        <item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
      </style>
    </resources>
    

    obviously change the style name to whatever you are using. then in AndroidManifest in the "application" part, add this:

    android:theme="@style/Theme.rando"
    

    have not tried by myself

    S Offline
    S Offline
    Stamp_it
    wrote on last edited by
    #6

    @ekkescorner Ok, Thanks for replying, I will check this out.

    ekkescornerE 1 Reply Last reply
    0
    • S Stamp_it

      @ekkescorner Ok, Thanks for replying, I will check this out.

      ekkescornerE Offline
      ekkescornerE Offline
      ekkescorner
      Qt Champions 2016
      wrote on last edited by
      #7

      @Stamp_it if it also doesn't work, then probably because you need newer templates as used by Qt 6 ?
      then you should consider to use MobileUI, which is working on Qt 5.15 and Qt 6.

      ekke ... Qt Champion 2016 | 2024 ... mobile business apps
      5.15 --> 6.9 https://t1p.de/ekkeChecklist
      QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

      S 1 Reply Last reply
      0
      • ekkescornerE ekkescorner

        @Stamp_it if it also doesn't work, then probably because you need newer templates as used by Qt 6 ?
        then you should consider to use MobileUI, which is working on Qt 5.15 and Qt 6.

        S Offline
        S Offline
        Stamp_it
        wrote on last edited by
        #8

        @ekkescorner Thank for replying.
        Now I am working in Qt6.6.3, With Android -35, Built the application Successfully, But on android device it shows only a white blank screen with the Name of the application at the top

        jsulmJ 1 Reply Last reply
        0
        • S Stamp_it

          @ekkescorner Thank for replying.
          Now I am working in Qt6.6.3, With Android -35, Built the application Successfully, But on android device it shows only a white blank screen with the Name of the application at the top

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #9

          @Stamp_it You should try with latest Qt version, which is 6.9.1

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • ekkescornerE Offline
            ekkescornerE Offline
            ekkescorner
            Qt Champions 2016
            wrote on last edited by
            #10

            @Stamp_it would also recommend to use 6.9.1

            ekke ... Qt Champion 2016 | 2024 ... mobile business apps
            5.15 --> 6.9 https://t1p.de/ekkeChecklist
            QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

            1 Reply Last reply
            0
            • ekkescornerE Offline
              ekkescornerE Offline
              ekkescorner
              Qt Champions 2016
              wrote on last edited by
              #11

              And here's what Qt says, if you want to opt-out from Android-35 edge-to-edge:
              you have to add styles.xml and add in Manifest... activity... android:theme="@style/NormalTheme"
              see the details here:
              https://codereview.qt-project.org/c/qt/qtbase/+/630376

              ekke ... Qt Champion 2016 | 2024 ... mobile business apps
              5.15 --> 6.9 https://t1p.de/ekkeChecklist
              QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

              1 Reply Last reply
              0
              • L Offline
                L Offline
                liuliuliu
                wrote last edited by
                #12

                I'm currently trying to compile Android API 35 on 5.15.2, but it keeps failing. How did you get it to compile successfully? Could you tell me which versions of NDK and SDK you used?

                1 Reply Last reply
                1
                • JoeCFDJ Offline
                  JoeCFDJ Offline
                  JoeCFD
                  wrote last edited by
                  #13

                  Check my old posts and find out the links to the matching versions.

                  L 1 Reply Last reply
                  0
                  • JoeCFDJ JoeCFD

                    Check my old posts and find out the links to the matching versions.

                    L Offline
                    L Offline
                    liuliuliu
                    wrote last edited by
                    #14

                    @JoeCFD I searched but couldn't find any relevant posts. On my end, using NDK 21 + Java 1.8 + Build-Tools 34.0.0 compiles successfully. However, after switching Build-Tools to version 35, it no longer works. I'm wondering if Qt5 is no longer buildable on the Android 35 platform?

                    1 Reply Last reply
                    0
                    • JoeCFDJ Offline
                      JoeCFDJ Offline
                      JoeCFD
                      wrote last edited by JoeCFD
                      #15

                      https://developer.android.com/build/jdks //scroll down. I think you need 34 and Java 17
                      https://docs.gradle.org/current/userguide/compatibility.html

                      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