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. Adding Java code to Qt Android apps via Qt Creator

Adding Java code to Qt Android apps via Qt Creator

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 3 Posters 4.8k 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.
  • S Offline
    S Offline
    scottwild
    wrote on last edited by
    #1

    Greetings.

    I have a Qt app running on Android that needs to manage Bluetooth connections. It appears that I'll need to write a custom Java Bluetooth management class that I can then use JNI to communicate with.

    My question is: How do I add the Java code to my Qt Creator project so that it gets built into my app?

    Thank you

    1 Reply Last reply
    0
    • C Offline
      C Offline
      csanders
      wrote on last edited by
      #2

      Have you had any progress on this? I am attempting to do the same thing.

      1 Reply Last reply
      0
      • raven-worxR Offline
        raven-worxR Offline
        raven-worx
        Moderators
        wrote on last edited by
        #3

        [quote author="scottwild" date="1379978283"]
        My question is: How do I add the Java code to my Qt Creator project so that it gets built into my app? [/quote]

        i guess you should read the following:

        http://qt-project.org/doc/qt-5/deployment-android.html#res-values-libs-xml

        and

        http://qt-project.org/doc/qt-5/deployment-android.html#qmake-variables
        especially the part with ANDROID_PACKAGE_SOURCE_DIR

        --- 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

        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