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-C++ based library on Android using JNI , missing initialization of Qt libs?
Forum Updated to NodeBB v4.3 + New Features

Qt-C++ based library on Android using JNI , missing initialization of Qt libs?

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 844 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.
  • D Offline
    D Offline
    dualfaces
    wrote on last edited by
    #1

    Hi all,

    i have written a c++ library containing Qt based classes. They handle sound input and output using QAudioInput and QAudioOutput. To use it in an Android application I use a c method interface which is called by JNI functions.
    Calling the functions of the c interface work fine, i can see debug output in Logcat. But when the library tries to instantiate a QAudioInput or QAudioOutput it says that there are no available output devices.
    On a Windows PC using a java application all is good, hence i expect that there is some "magic" initialization code in the QtActivity.java class which i don't use.

    Are there functions that can just be called in order to set up the environment such that Qt classes work?

    Thank you!

    Regards,
    Andreas

    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