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 program on Android with java data. Proper way to set up JNI
Forum Updated to NodeBB v4.3 + New Features

Qt program on Android with java data. Proper way to set up JNI

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 225 Views 2 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.
  • M Offline
    M Offline
    maddthad
    wrote on 17 Sept 2019, 15:05 last edited by
    #1

    Good day. I have a Qt gui that currently uses a .so lib to access some data channels, the data are assigned to signals and drive a display.

    I want to port to Android. I have a native java lib to replace the .so and I can aquire data using it in a self contained java program. The java code basically spits out a string of data every time the value changes. What would be the proper way to call the java code and use the strings or values as a signal in Qt.

    I have been looking at the JNI examples but for a non programmer its hard for me to follow. A basic example I could follow would help very much.

    I need to be able to call the java code with a string that defines the channel name. The java code then ouput an update when value change and I need the Qt c++ code to catch that data.

    Will the JNI do this, and what would be the proper way to implement this senareo.

    thx

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 17 Sept 2019, 18:40 last edited by
      #2

      Hi and welcome to devnet,

      I think you are going to be interested by the QtAndroidExtras.

      It does provide tools to facilitate JNI code writing.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      1/2

      17 Sept 2019, 15:05

      • Login

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