Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. [Solved] Qt + Java (from Android)
Forum Updated to NodeBB v4.3 + New Features

[Solved] Qt + Java (from Android)

Scheduled Pinned Locked Moved Language Bindings
4 Posts 2 Posters 4.4k 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.
  • X Offline
    X Offline
    xtingray
    wrote on last edited by
    #1

    Hello there,

    Right now I have a pretty basic Qt application running from Android with no issues, but I would like to make some calls to Java intents from the C++ code. The ideas is to share objects or texts through social networks, access to the contact list and things like that making intent calls.

    As far as I was looking around the Necessitas source code, it seems to make at least one of the intent calls I want to do.

    I really appreciate any hint about the code I need to include in my project to access/call some (Android) Java intents. A "Hello World" example would be great!

    Thank you!


    Qt Developer

    1 Reply Last reply
    0
    • X Offline
      X Offline
      xtingray
      wrote on last edited by
      #2

      This is exactly what I was looking for:

      http://community.kde.org/Necessitas/JNI

      I hope this can be useful for somebody else! :)


      Qt Developer

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Scorp1us
        wrote on last edited by
        #3

        Is there anyway you can supply sample code?
        I'd like to so the same thing, but don't know where to begin. I "get" JNI... but don't know how to assemble it into a useful assemblage of statements.

        1 Reply Last reply
        0
        • X Offline
          X Offline
          xtingray
          wrote on last edited by
          #4

          This is the source code of the project I was working on:

          https://github.com/xtingray/tupi.mobile

          Last year, I compiled it using MInistro/Qt4 and it worked. I ported the small code to Qt5 but I haven't tried again, so I have no idea if it works now.

          I hope this can gives you a hint. Good luck!


          Qt Developer

          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