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. Building a Qt Android AAR
QtWS25 Last Chance

Building a Qt Android AAR

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 3 Posters 1.3k 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.
  • J Offline
    J Offline
    jonlross
    wrote on last edited by
    #1

    I've found lots of great examples of building standalone Android applications, but there are no examples of building an android AAR. I'm basically looking to have an AAR that takes a SurfaceView (or some kind of drawing surface) and then draws Qt UI to that view. I've searched high and low and can't find any examples of this. Is this even possible?

    Thanks

    raven-worxR 1 Reply Last reply
    0
    • J jonlross

      I've found lots of great examples of building standalone Android applications, but there are no examples of building an android AAR. I'm basically looking to have an AAR that takes a SurfaceView (or some kind of drawing surface) and then draws Qt UI to that view. I've searched high and low and can't find any examples of this. Is this even possible?

      Thanks

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @jonlross
      to build an AAR instead of an APK simple replace apply plugin: 'com.android.application' with apply plugin: 'com.android.library' in the build.gradle file.

      Regarding the Qt-into-SurfaceView feature, i don't know if thats straight forward possible. I think you will have to do some adaptions.
      Take a look at the JAVA classes in <QTDIR>/src/android/java/src/org/qtproject/qt5/android/bindings

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      J 1 Reply Last reply
      2
      • raven-worxR raven-worx

        @jonlross
        to build an AAR instead of an APK simple replace apply plugin: 'com.android.application' with apply plugin: 'com.android.library' in the build.gradle file.

        Regarding the Qt-into-SurfaceView feature, i don't know if thats straight forward possible. I think you will have to do some adaptions.
        Take a look at the JAVA classes in <QTDIR>/src/android/java/src/org/qtproject/qt5/android/bindings

        J Offline
        J Offline
        jonlross
        wrote on last edited by
        #3

        @raven-worx Thanks. I'll check it out. If I find a solution, I'll post it here.

        G 1 Reply Last reply
        0
        • J jonlross

          @raven-worx Thanks. I'll check it out. If I find a solution, I'll post it here.

          G Offline
          G Offline
          GuyMat
          wrote on last edited by
          #4

          @jonlross. Hi, did you find a solution?

          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