Navigation

    Qt Forum

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

    • SOLVED QtCreator WiFi debugging error: adb server version (41) doesn't match this client (39); killing...
      Mobile and Embedded • android qtcreator wifi connection • • Kyeiv  

      2
      0
      Votes
      2
      Posts
      18
      Views

      Solved by: adb kill-server sudo cp ~/Android/Sdk/platform-tools/adb /usr/bin/adb sudo chmod +x /usr/bin/adb adb start-server thanks to this
    • UNSOLVED how to make a toplevel window on android ?
      Mobile and Embedded • c++ android • • tataeress  

      7
      0
      Votes
      7
      Posts
      68
      Views

      it seems that i can achieve this through what android developpers call system_overlay i still don't know if i can do it with c++ i found that something like this may exist for QML https://doc.qt.io/qt-5/qml-qtquick-controls2-overlay.html?fbclid=IwAR3aAt6Lj6nVc5drVgLxk9tJ8-jXQS--ZOy2aPsnjoxvqA3L84SfImhVmtM#details
    • UNSOLVED QLineEdit is overwriting the first input character (bug?)
      Mobile and Embedded • android widget qlineedit bug • • Hector_WPG  

      3
      0
      Votes
      3
      Posts
      31
      Views

      @jsulm That is correct, but I'd first try with the latest Qt 5 version 5.15.2 Regards
    • UNSOLVED Is a QT application able to use the Android Telecom Framework?
      Mobile and Embedded • android qt 5.7 android sdk telecom and net telephony • • John1093838  

      2
      0
      Votes
      2
      Posts
      29
      Views

      Hi, For highly specific platform API, you will have to write some platform specific code. Qt can't cover absolutely everything and it's not its goal. Android is a bit of a special case because of its use of Java. You should take a look at the QtAndroidExtras module and its examples. Note that this is really specific to Android and how it works. There are other extras modules for some often used platform specific stuff that you can take a look at in terms of how things can be done. Note that these modules have been deprecated for Qt 6 in favor of a different approach and integration in a more centralized way.
    • UNSOLVED How to communicate with FTDI with Qt Android
      Mobile and Embedded • android ftdi • • Kyeiv  

      10
      0
      Votes
      10
      Posts
      64
      Views

      @Kyeiv , I think yes, because a lot time ago, a mr. Mike Goza tried to add the QtSerialPort support to android (for FTDI, CP, PL and other chips): https://codereview.qt-project.org/c/qt/qtserialport/+/83480 (but unsuccessfull). There are used the USB API, directly. But, you can take the FTDI example provided by @Pablo-J-Rogina , if it will be simpler.
    • Painting behind system bars using Qt/Qml
      Showcase • qml android ios navigation status bar • • J.Hilk  

      1
      6
      Votes
      1
      Posts
      76
      Views

      No one has replied

    • UNSOLVED Qt Android gstreamer , qtquick2videosink slow down video.
      Mobile and Embedded • qml android video gstreamer plugins • • DkDkDk  

      9
      0
      Votes
      9
      Posts
      66
      Views

      Sorry, I meant for video encoding. In any case, I would separate the streaming and the preview if possible. Generating the network stream for one or more device can be very heavy CPU wise.
    • UNSOLVED Having trouble setting up Qt for Android
      Mobile and Embedded • android setup • • LorenDB  

      3
      0
      Votes
      3
      Posts
      48
      Views

      @sierdzio Hmm, looks like I did forget that.
    • UNSOLVED Qt 6 target OS Android version
      Announcements • android qt6 target • • EmileDW  

      2
      0
      Votes
      2
      Posts
      110
      Views

      @EmileDW See https://doc-snapshots.qt.io/qt6-dev/android.html "Android 6.0 or later (API level 23 or higher)"
    • UNSOLVED CMAKE_PREFIX_PATH is not working with Android
      Installation and Deployment • android cmake cross compile • • noone  

      1
      0
      Votes
      1
      Posts
      98
      Views

      No one has replied

    • UNSOLVED Trouble keeping an application running in the background
      Mobile and Embedded • android ndk • • ouscn  

      1
      0
      Votes
      1
      Posts
      30
      Views

      No one has replied

    • UNSOLVED How to get path to SD card
      Mobile and Embedded • android storage sdcard • • Kyeiv  

      3
      0
      Votes
      3
      Posts
      90
      Views

      @Pablo-J-Rogina i looked through its documentation and i am afraid that it returns only internal storage paths.
    • UNSOLVED Android Target SDK version being reduced
      Mobile and Embedded • android build apk • • ConnorLee  

      5
      1
      Votes
      5
      Posts
      314
      Views

      @ConnorLee I have the same issue with my installation. I did not notice the problem earlier, but then I updated Android SDK to the latest version and after that I can't deploy my app any more to any device. QtCreator says "Android settings are OK. (SDK Version: 3.0, NDK Version: 21.3.6528147)" From the AnroidManifest.xml I can't set minimum nor target SDK.
    • SOLVED Could not resolve all artifacts for configuration ':classpath'
      Mobile and Embedded • android build gradle • • Kyeiv  

      2
      0
      Votes
      2
      Posts
      611
      Views

      @Kyeiv said in Could not resolve all artifacts for configuration ':classpath': OpenJDK 9.0.4 You need to use Java 8, see here. Versions higher than 8 might cause issues for the Android SDK command-line tools.
    • UNSOLVED Why creating QAndroidJniObject from jobject fails without error?
      Mobile and Embedded • android libraries shared library java jni • • advm  

      2
      0
      Votes
      2
      Posts
      84
      Views

      I don't understand this well: From looking at the documentation, it seems that the QAndroidJniObject constructor and methods have to be attaching and detaching the current thread to and from the JVM, which isn't going to work in a JNI thread that's already attached to the JVM. Does this mean that, if I call C++ function(that uses QAndroidJniObject) from java JNI class, it is not going to work? Because as I understand, QAndroidJniObject is attaching and detaching the current thread to and from the JVM, and the JNI java object that is calling native functions, is already attached to the JVM. Please correct me if I am wrong.
    • SOLVED Develop for android java issues
      General and Desktop • android quick mobile • • Phips04  

      28
      0
      Votes
      28
      Posts
      537
      Views

      @Phips04 Your welcome
    • UNSOLVED How to get file path from fileurl in qt android
      Mobile and Embedded • android qt 5.4 mobile file dialog fileurl • • HemantSuryawanshi  

      3
      0
      Votes
      3
      Posts
      41
      Views

      @JonB yes I tried but its giving message that the file is not found.
    • SOLVED Error when building Qt5.13.2 from source on Windows for Android.
      Installation and Deployment • android source code qt5.13.2 • • advm  

      2
      0
      Votes
      2
      Posts
      77
      Views

      Found what was causing the problem from here. I don't know why but running without -j4 like this: mingw32-make there is no error and qt is built successfully. I thought that without -j4 I would see the error message but luckily there was no error.
    • UNSOLVED Compile for Android causes "The parameter is incorrect"
      Mobile and Embedded • android mergedebugasset • • Lounge Lizard Larry  

      2
      0
      Votes
      2
      Posts
      47
      Views

      The problem is likely the NDK version, which is optimal for Qt 5.12.3, but likely not compatible with 5.15
    • SOLVED The mess of the Android tools
      Mobile and Embedded • android • • Jose LZ  

      4
      0
      Votes
      4
      Posts
      67
      Views

      @Jose-LZ said in The mess of the Android tools: The documentation in https://doc.qt.io/qt-5/android-getting-started.html is only a list of thinks but does not explain what each element is. You are more than welcome to contribute additions/clarifications to such document so others users could benefit from your experience :-)
    • UNSOLVED Problem to connect serial port on android platform
      Mobile and Embedded • android serial port qt 5.14.0 • • HemantSuryawanshi  

      1
      0
      Votes
      1
      Posts
      105
      Views

      No one has replied

    • UNSOLVED How to determine Bluetooth end of transmission
      Mobile and Embedded • android bluetooth rfcom • • ouscn  

      1
      0
      Votes
      1
      Posts
      46
      Views

      No one has replied

    • SOLVED problem in generating .so files using msys2 tool for qt on android
      Mobile and Embedded • android openssl • • HemantSuryawanshi  

      5
      0
      Votes
      5
      Posts
      69
      Views

      yes I did. the get request is working in it.
    • SOLVED Android qml imports
      Announcements • qml android virtualkeyboard macros • • lopeztel  

      5
      0
      Votes
      5
      Posts
      204
      Views

      @sierdzio Thanks, this is exactly what I needed! Ended up doing: #if defined(Q_OS_ANDROID) const QUrl url(QStringLiteral("qrc:/main_android.qml")); #elif defined (Q_OS_LINUX) const QUrl url(QStringLiteral("qrc:/main_linux.qml")); #endif in my main.cpp
    • SOLVED Qt and Android - How to launch camera by using Qandroidjniobject
      Mobile and Embedded • android qt creator camera qandroidjniobje qtandroid • • HemantZ  

      2
      0
      Votes
      2
      Posts
      121
      Views

      I solved this above problem in Qt by using Qandroidjniobject. For launching camera by using intent code is given below, QAndroidJniObject ACTION_IMAGE_CAPTURE = QAndroidJniObject::getStaticObjectField("android/provider/MediaStore", "ACTION_IMAGE_CAPTURE", "Ljava/lang/String;"); QAndroidJniObject intent("android/content/Intent", "(Ljava/lang/String;)V", ACTION_IMAGE_CAPTURE.object<jstring>()); QtAndroid::startActivity(intent.object<jobject>(), 101, this);
    • SOLVED Registering Broadcast Receiver on Android
      Mobile and Embedded • android java notifications • • Hitokage  

      4
      0
      Votes
      4
      Posts
      472
      Views

      @ashajg how to registerReceiver in c++?
    • UNSOLVED registerNatives failed when linking Qt Librarys to Android Project
      Mobile and Embedded • android bluetooth library dynamic loading • • morsch  

      1
      0
      Votes
      1
      Posts
      151
      Views

      No one has replied

    • UNSOLVED Dynamic libs on Android with Qt5.14.2
      Mobile and Embedded • android qt5.14.2 dynamic linking • • koahnig  

      7
      0
      Votes
      7
      Posts
      305
      Views

      Trick with android/libs should work for older Qt versions, too, and it works the same on qmake and cmake. If all else fails, you could have different .pri per Qt version... It's a nuisance for sure but my hope is that for Qt 5.14+ it will stay as it is for long.
    • UNSOLVED How to convert Android content url and use it to open file?
      Mobile and Embedded • android ios mobile file file dialog • • Hitokage  

      4
      0
      Votes
      4
      Posts
      591
      Views

      @J-Hilk @sierdzio thank you guys!
    • 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
      152
      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 Get executable output from Qt console application project with arm64-v8a compiler
      General and Desktop • android qt application androidqt • • morteza ali ahmadi  

      1
      0
      Votes
      1
      Posts
      62
      Views

      No one has replied

    • UNSOLVED QSerialPort::UnsupportedOperationError ("Invalid argument") error in opening /dev/diag port in Android device using QSerialPort in Qt Android
      General and Desktop • c++ android qt 5.12 arm64-v8a • • morteza ali ahmadi  

      6
      0
      Votes
      6
      Posts
      217
      Views

      I can open this port by: So, as I said, the problem is not in O_LARGEFILE. There are just a few codes in QSP sources in github link This is not a sources, the sources is in.
    • SOLVED Issue with mkpath on Android
      Mobile and Embedded • android mkpath • • koahnig  

      6
      0
      Votes
      6
      Posts
      94
      Views

      @KroMignon said in Issue with mkpath on Android: @koahnig I guess the files are written under /data/user/0/<packagename>/files/ You are correct that this is the path shown with writableLocation. It is also generated under /storage/emulated/0/Android/data/<packagename>/files. However, you cannot simply this /data/user/0/<packagename>/files/ for absolute path' with ofstream under C++. These files are not generated. I was previously wrong. The issue is the same for Android 9 and Android 10. When using /storage/emulated/0/Android/data/<packagename>/files this might be used as basis for absolute path' generation and std::ofstream of C++.
    • UNSOLVED Using Qt codes in Android application
      General and Desktop • c++ android qt5 cmake ndk • • morteza ali ahmadi  

      1
      0
      Votes
      1
      Posts
      73
      Views

      No one has replied

    • UNSOLVED Timer stops/pauses if Activity is suspended in Android
      QML and Qt Quick • qml android timer onpause • • SyntaX  

      9
      0
      Votes
      9
      Posts
      288
      Views

      @SyntaX said in Timer stops/pauses if Activity is suspended in Android: Do I just send an Email to android-development@qt-project.org and everyone who is subscribed gets the message? Seems a bit of a overkill like @everyone to me? No problem, you first have to register to the mailing list, and then you can send emails to it. This is the Qt-Android developers mailing list. So your mail will be received by each member. That's the way mailing lists works ;-) You can also try to contact BogDan Vatra from KDAB, which is the main developer of Qt/Android
    • UNSOLVED How to set Android Target Architecture in Qt?
      Mobile and Embedded • android androidqt androiddeployqt qt5.14.1 • • harip  

      10
      1
      Votes
      10
      Posts
      903
      Views

      Post your environment information (OS, Qt version, Qt Creator version) Are Android SDK & NDK installed and set up in Qt Creator? Have you selected the architecture in Projects->Build pane of Qt Creator? Is this a new project or some older one which you are porting to newer Qt version?
    • UNSOLVED How to handle the situation when Java method being called via JNI does not exist?
      Mobile and Embedded • android jni • • Dmitriano  

      3
      0
      Votes
      3
      Posts
      101
      Views

      @Dmitriano I guess QAndroidJniEnvironment::ExceptionCheck() purpose is to catch exception which occurred during function execution and not "function not exist" exception. So your use case is not covered. Don't you have hand over Java code? Just create an empty function which throw an exception, this should be catchable with QAndroidJniEnvironment::ExceptionCheck().
    • UNSOLVED Creator with Android toolchain
      Tools • android creator creator 4.11.1 • • koahnig  

      1
      0
      Votes
      1
      Posts
      313
      Views

      No one has replied