Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. java jni
    Log in to post

    • SOLVED "QSqlDatabase: QSQLITE driver not loaded" error in deploying a Qt-Android project using JNI with Android studio
      General and Desktop • android qt 5.7 sqlite java jni android studio • • morteza ali ahmadi  

      15
      0
      Votes
      15
      Posts
      704
      Views

      I can solve the problem. First, I created folder sqldrivers including libqsqlite.so in the app directory (e.x. /data/user/0/com.example.polarislib) and I set permission by chmod 777 to sqldrivers folder and libqsqlite.so file and finally I used the following code in my source where the connection to Sqlite is needed: QCoreApplication::addLibraryPath("/data/user/0/com.example.polarislib");
    • UNSOLVED Android service java method is returning always same value to Qt Android service
      Mobile and Embedded • android service java jni • • ismail  

      3
      0
      Votes
      3
      Posts
      528
      Views

      Unfortunately it didn't work. I still get the same value. Any other suggestion?
    • UNSOLVED QtAndroid local notifications , notifications poping up immediately
      Mobile and Embedded • android qt5.5 java jni java jni • • Qjay  

      2
      0
      Votes
      2
      Posts
      504
      Views

      @Qjay said in QtAndroid local notifications , notifications poping up immediately: the notifications are popping up almost instantly ( despite me providing time for it ). you pass the time you want it to be triggered from now on. The API expects a time since EPOCH (as your comment in the code also states) which are the milliseconds from 1970/01/01 on. So in your JAVA code add new Date().getTime() milliseconds to your current timeout. So far i am able to get the notifications ( but not on Android O ) did you read this already? Alos chekc the Qt debugger console and/or LogCat for suspicious messages regarding notifications.
    • How to build android library by qmake(Qt5)?
      Mobile and Embedded • c++ qt5 library java jni • • stereomatchingkiss  

      2
      0
      Votes
      2
      Posts
      2471
      Views

      I meet the same issue. My problem is solved by these steps: select "projects" in left tool bar of Qt creator. click "cancel" icon of "Make install" in Build Steps. click "cancel" icon of "Build Android APK" in Build Steps. The click actions look not operating at all, but after these clicks, the project is allowed to build.
    • Mac OSX 10.10 - Include a QT Static Library *.a into a Eclipse CDT JNI Shared Library *jnilib (Download of the projekts available)
      Installation and Deployment • mac os x shared library static library jni java jni eclipse cdt jnilib eclipse • • moozoom  

      2
      0
      Votes
      2
      Posts
      1488
      Views

      @moozoom I run in the same paradigm when I try to create a static linked library with Qt targeting Android and latter to use it with JINI on Android Studio. Reading you post I see you have almost the same problem like me with one difference. To me are working as far I use only std library My problem appears when I use QString for example in the library. Looks the static build does not statically includes the Qt framework dependencies. Finally did you find a solution? Me I run with this issue past over one month. Thanks
    • Mac OSX QT-Creator Static Library *.a (clang-Compiler) in Eclipse CDT (JNI) *.jnilib (cpp-Compiler) einbinden (Download Projekte)
      German • static cpp mac os x clang static library jni java jni eclipse cdt eclipse jnilib cdt llvm • • moozoom  

      1
      0
      Votes
      1
      Posts
      990
      Views

      No one has replied