Navigation

    Qt Forum

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

    • UNSOLVED Replacement for static_init_classes in a Qt6.4.1 qmake project - crash in QtBluetoothBroadcastReceiver.onReceive(...)
      Mobile and Embedded • android qmake qt6 staticinitcla androidmanifest • • d_h_mcinnes  

      1
      0
      Votes
      1
      Posts
      53
      Views

      No one has replied

    • UNSOLVED example of Android service that runs in separate process
      Mobile and Embedded • android qt6.4.1 android service • • Marc_Van_Daele  

      1
      0
      Votes
      1
      Posts
      53
      Views

      No one has replied

    • UNSOLVED Adding an Android Service: when using "Service in Separate Process", main() is only called once
      Mobile and Embedded • android emulator qt6.4.1 android service • • Marc_Van_Daele  

      1
      0
      Votes
      1
      Posts
      139
      Views

      No one has replied

    • UNSOLVED How to Use Qt6 libraries in android studio ndk?
      Mobile and Embedded • android cmake qt6 ndk • • mesutkokalan  

      2
      0
      Votes
      2
      Posts
      51
      Views

      Are you using Qt build for android? It is normally under android_* dir and is different from normal build.
    • SOLVED [Qt on Android] App doesn't start when i set specific defaultConfig on build.gradle file
      Mobile and Embedded • c++ android qt creator gradle api 31 • • Gianluca Bernardi  

      8
      0
      Votes
      8
      Posts
      147
      Views

      @Gianluca-Bernardi I have default as well. Not sure how you got full before. Good to know you solved the issue.
    • UNSOLVED Issue with requesting permissions on Android
      Mobile and Embedded • android qt6.4.1 permissions • • voltron  

      2
      0
      Votes
      2
      Posts
      65
      Views

      This is your job to handle it. If permission is not granted, you stop your app or pop up a dialog to tell the user that the app can not continue.
    • SOLVED Qt 5.15.11 regression from Qt 5.15.10 (Android Release Build)
      Installation and Deployment • android qtmultimedia qt 5.15.11 • • mujeek  

      6
      0
      Votes
      6
      Posts
      122
      Views

      @ekkescorner This issue will be fixed in next release. Qt support said that overwriting Qt 5.15.11 androiddeployqt files with Qt 5.15.10 ones will fix this issue. I don't like mixing versions, so I'm waiting next release while using Qt 5.15.10 which is good enough for my development.
    • UNSOLVED How to store a file in an internal location on an Android Phone?
      Mobile and Embedded • android storage widget applicat qt6.3.1 • • Kokoy  

      2
      0
      Votes
      2
      Posts
      90
      Views

      Use QStandardPaths::writeableLocation to find the proper location. Use QDir and QFile to finish the save.
    • UNSOLVED Error compiling with blank file!!
      Mobile and Embedded • android qt5.14.2 • • RenanHm  

      3
      0
      Votes
      3
      Posts
      124
      Views

      A complete compilation has already been performed several times. I can not include a new class in the project.. or even a blank file that this error occurs. Will the SDK, NDK and JDK settings be correct?
    • UNSOLVED Problem compiling for Android from Windows
      Mobile and Embedded • android compilation qt 5.15 • • mipr  

      1
      0
      Votes
      1
      Posts
      165
      Views

      No one has replied

    • UNSOLVED Qml text rendered error
      QML and Qt Quick • android qml text block • • wantfat  

      2
      0
      Votes
      2
      Posts
      115
      Views

      quite hard to help without any information..
    • SOLVED Android permanent storage
      Mobile and Embedded • android storage qstandardpaths • • Cocojambo  

      3
      1
      Votes
      3
      Posts
      130
      Views

      I think it depends on Android OS version. For the latest version(s), I suspect @J-Hilk is 100% correct. Would the Downloads folder be acceptable? You might have a look at my "cynical" (my words), pessimistic approach described on an older forum thread: https://forum.qt.io/post/675910
    • UNSOLVED Qt Creator 7.0.0 crashes when Android app is tried to run on device
      Mobile and Embedded • android qtcreator qt 5.15 • • SevenM  

      1
      0
      Votes
      1
      Posts
      154
      Views

      No one has replied

    • SOLVED Didn't find class QtActivityDelegate with App Bundle
      Mobile and Embedded • android release mode bundle qtactivitydeleg • • Colton  

      3
      0
      Votes
      3
      Posts
      172
      Views

      I had a Progaurd file for release. Removing that fixed the problem: keepattributes LineNumberTable,SourceFile renamesourcefileattribute SourceFile
    • SOLVED QtCreator does not generate kits for android
      Mobile and Embedded • android qtcreator kits • • MrPotato  

      9
      0
      Votes
      9
      Posts
      760
      Views

      @MrPotato On the arch wiki I'm told to build: android-armv7a-eabi-qt5AUR - armeabi-v7a android-aarch64-qt5AUR - aarch64 android-x86-qt5AUR - x86 android-x86-64-qt5AUR - x86_64 from the AUR. But apparently the packages have been dropped. From the maintainer: I'll drop this package, I been thinking and there are a lot of strong reasons not to waste any time maintaining it. KDE doesn't provide an easy way to download the entire Qt source code in a single package, like in the official Qt releases. Also, KDE doesn't provides tagged versions, I've to keep tracking manually the latest commits, or converting it to a git package. It will require to split this package into 47x4 packages, 47 Qt modules and 4 architectures to maintain, that's 188 packages to maintain, absurd! Cloning a git repository is slower than just downloading a source package file, making the build even much slower and painful. Is a lot of work for something that will be dead in 1 year or 2 at most. Good luck to the one that will step up to take care of this monstrosity, to the rest of developers, don't be lazy and consider switching to Qt6. Which leaves me with the only alternative being to use the Qt Online Installer. I guess this must be the only option. Which is a bummer, because now I'll have duplicate packages on my system.
    • UNSOLVED In-App Purchasing of Registered Product (google store)
      QML and Qt Quick • android store purchasing registertype inapp • • Fitndex-developer  

      2
      0
      Votes
      2
      Posts
      150
      Views

      @Fitndex-developer said in In-App Purchasing of Registered Product (google store): com.fitndex.theApp Hello Everyone, since there has been no activity on this post, I thought I'd let everyone know that this setup works with one change in the code: do not include the app name in the identifier. identifier: 30day_data_access ... is correct identifier com.fitndex.theApp.30day_data_access ... is wrong On google play I was missing the following. I was in internal testing and the app had not been published, i published to closed testing. Add licence testers to the app in google play console (this is different than the release track email list) If using the same app version code as the published version, testing will work, even when plugged in for debug, if you are logged into the tester gmail account. I took a crack at developing subscriptions in java, and for me, that is going to take a while but I will finish (the jni messenger example in android extras helps start with communicating with java if you are new to that), Qt purchasing makes life a lot easier just most of your work is going to be on the google play console side when dealing with Qt Purchasing. So if things are not working, check your settings with google (or apple), that is most likely it. Qt purchasing does not handle subscriptions, it will never find your subscriptions no matter what. The reason for that is the developers could not come up with a platform independent solution for subscriptions. The community needs to figure this one out for everyone. An example anyone? Since monetization is so important; and documentation/examples on qt purchasing are minimal, I hope this helps some of you!! I could have used something like this when I was working on it. FITNDEX HOME now we are on track to launch this summer. You can join the beta on website. Lets help each other get to market. The more money we all make, the better Qt will get, I promise. Steve
    • UNSOLVED Unable to build Qt MySQL Driver
      Mobile and Embedded • android sql mysql mariadb • • mbnoimi  

      3
      0
      Votes
      3
      Posts
      156
      Views

      Guys; May you please some help. I reached to a dead end
    • SOLVED Hazy camera video on Android
      Mobile and Embedded • android camera • • AkshayFP  

      2
      0
      Votes
      2
      Posts
      159
      Views

      Never mind. I had to set the surface format version to 3.0 in main, at the top. int main(int argc, char *argv[]) { QSurfaceFormat f; f.setVersion(3,0); QGuiApplication app(argc, argv); //... }
    • UNSOLVED Getting the issue with the QFileDialog for QT version upgrade 5.12.9 to 5.15.2
      QML and Qt Quick • android file dialog qt 5.15.0 • • Kuldip Somwanshi  

      2
      0
      Votes
      2
      Posts
      112
      Views

      Modern Androids heavily restrict access to the file system, and getting file URLs is no longer allowed. I suspect you have bumped target SDK when upgrading and now you are bound by newer rules from Android: you'll have to upgrade your code to use storage providers and permissions. Some info: https://developer.android.com/training/data-storage and https://developer.android.com/guide/topics/providers/document-provider
    • UNSOLVED I am try to develop app for android to generate the random number.
      Mobile and Embedded • android qt creator • • dev_liya  

      2
      0
      Votes
      2
      Posts
      146
      Views

      @dev_liya Why do you need threads to generate random numbers?! You can do this way easier using QTimer...
    • SOLVED After QT5 -> QT6 porting: No package identifier when getting name for resource number 0x00000000 - Problem with Manifest?
      Mobile and Embedded • android mobile deploy manifest • • Hitokage  

      2
      0
      Votes
      2
      Posts
      311
      Views

      I have found a solution! I did multiple things: Used newer template files for Android from Qt/6.2.3/android_arm64_v8a/src/android/templates/ (res/values/libs.xml - overwritten, build.gradle - overwritten, AndroidManifest.xml - copy and paste and then edited the content and added the missing things from my old one) Used newer gradle files from /Qt/6.2.3/android_arm64_v8a/src/3rdparty/gradle/gradle/wrapper/ - overwritten Upgrade of Qt Creator, Qt 6.2.2 -> 6.2.3, Android SDK, Android NDK My current Manifest: <?xml version="1.0"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.dontpanic" android:installLocation="auto" android:versionCode="20000" android:versionName="2.0"> <uses-sdk android:minSdkVersion="23" android:targetSdkVersion="31"/> <!-- The comment below will be replaced with dependencies permissions upon deployment. Remove the comment if you do not require these default permissions. --> <!-- %%INSERT_PERMISSIONS --> <!-- The comment below will be replaced with dependencies permissions upon deployment. Remove the comment if you do not require these default features. --> <!-- %%INSERT_FEATURES --> <supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:smallScreens="true" /> <application android:name="org.qtproject.qt.android.bindings.QtApplication" android:extractNativeLibs="true" android:hardwareAccelerated="true" android:label="@string/app_name" android:icon="@drawable/icon" android:requestLegacyExternalStorage="true"> <activity android:name="org.qtproject.qt.android.bindings.QtActivity" android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation|mcc|mnc|density" android:label="@string/app_name" android:launchMode="singleTop" android:screenOrientation="portrait"> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> <!-- Application arguments --> <meta-data android:name="android.app.arguments" android:value="-- %%INSERT_APP_ARGUMENTS%% --" /> <!-- Application arguments --> <meta-data android:name="android.app.lib_name" android:value="-- %%INSERT_APP_LIB_NAME%% --" /> <!-- Background running --> <!-- Warning: changing this value to true may cause unexpected crashes if the application still try to draw after "applicationStateChanged(Qt::ApplicationSuspended)" signal is sent! --> <meta-data android:name="android.app.background_running" android:value="false" /> <!-- Background running --> <!-- extract android style --> <!-- available android:values : * default - In most cases this will be the same as "full", but it can also be * something else if needed, e.g., for compatibility reasons * full - useful QWidget & Quick Controls 1 apps * minimal - useful for Quick Controls 2 apps, it is much faster than "full" * none - useful for apps that don't use any of the above Qt modules --> <meta-data android:name="android.app.extract_android_style" android:value="minimal" /> <!-- extract android style --> </activity> <service android:name="org.dontpanic.NotificationService"> <meta-data android:name="android.app.lib_name" android:value="-- %%INSERT_APP_LIB_NAME%% --"/> </service> <receiver android:name="org.dontpanic.NotificationReceiver" android:enabled="true" android:exported="true"/> <receiver android:name="org.dontpanic.RebootReceiver" android:enabled="true" android:exported="true"> <intent-filter> <action android:name="android.intent.action.BOOT"/> <action android:name="android.intent.action.LOCKED_BOOT_COMPLETED"/> <action android:name="android.intent.action.BOOT_COMPLETED"/> <action android:name="android.intent.action.QUICKBOOT_POWERON"/> <action android:name="android.intent.action.REBOOT"/> <action android:name="com.htc.intent.action.QUICKBOOT_POWERON"/> <action android:name="android.intent.action.USER_PRESENT"/> <category android:name="android.intent.category.DEFAULT"/> </intent-filter> </receiver> </application> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> </manifest>
    • UNSOLVED Qt 6.2.2 start new android activity
      Qt 6 • android qt6.2 • • MeSakone  

      2
      0
      Votes
      2
      Posts
      139
      Views

      No one has replied

    • SOLVED Next set of Android 12 features
      Mobile and Embedded • android android 12 • • Ramon_S  

      1
      0
      Votes
      1
      Posts
      150
      Views

      No one has replied

    • UNSOLVED Unable to debug device
      Mobile and Embedded • android debug debugging armv7 • • bludger  

      1
      0
      Votes
      1
      Posts
      145
      Views

      No one has replied

    • SOLVED Cannot find application binary - Android build
      Mobile and Embedded • android arm64-v8a armeabi-v7a • • Hitokage  

      3
      0
      Votes
      3
      Posts
      373
      Views

      So after some research I have found the reason. I had ANDROID_ABIS = armeabi-v7a arm64-v8a in my project, probably for the AAB build in the previous QT version. Then both the versions were looked for during the compilation. This might also help someone with similar problem.
    • UNSOLVED The kit's build configuration is invalid - Android
      Installation and Deployment • qml android build error • • AkshayFP  

      1
      0
      Votes
      1
      Posts
      218
      Views

      No one has replied

    • UNSOLVED Get data in customActivity from Qt
      Mobile and Embedded • android • • Alioune  

      2
      0
      Votes
      2
      Posts
      145
      Views

      My question is I want to send data and retrieve it in java. for exeomple void ActivityHandler::activityReceiver(int requestCode, int resultCode, const QAndroidJniObject &data) { if (requestCode == REQUEST_CODE) { if (resultCode == RESULT_OK) { const QAndroidJniObject key = QAndroidJniObject::fromString("message"); const QAndroidJniObject message = data.callObjectMethod( "getData", "(Ljava/lang/String;)Ljava/lang/String;", key.object()); if (message.isValid()) emit ActivityHandler::instance()->receiveFromActivityResult(message.toString()); } else { emit ActivityHandler::instance()->receiveFromActivityResult("Rejected!"); } } }
    • UNSOLVED Multimedia module requires CAMERA and RECORD_AUDIO permissions on Android
      Mobile and Embedded • android multimedia • • Dmitriano  

      1
      0
      Votes
      1
      Posts
      125
      Views

      No one has replied

    • UNSOLVED QT Creator does not connect to Android app being debugged
      Mobile and Embedded • android debug qtcreator 5.0 • • Dmitriano  

      1
      0
      Votes
      1
      Posts
      414
      Views

      No one has replied

    • SOLVED What is android_rcc_bundle.rcc ? Is there a way to reduce its size?
      Mobile and Embedded • android apk gradle • • Dmitriano  

      5
      0
      Votes
      5
      Posts
      313
      Views

      @Dmitriano Probably I had some wrong build configuration, after some experimentation and switching to Java11 it become about 1MB.
    • UNSOLVED Wrong ANDROID_PLATFORM value.
      Qt 6 • android build • • Dmitriano  

      3
      0
      Votes
      3
      Posts
      261
      Views

      @Dmitriano ANDROID_PLATFORM is correct with NDK 21.3.6528147 and NDK 22.1.7171670 but with NDK 23.1.7779620 it is not.
    • SOLVED PendingIntent.FLAG_MUTABLE not found while building QT 6.2.2 for Android
      Qt 6 • android • • Dmitriano  

      2
      0
      Votes
      2
      Posts
      915
      Views

      @Dmitriano it is because SDK API 31 was not installed.
    • SOLVED "No target architecture defined in json file" error while building for Android
      Mobile and Embedded • android cmake • • Dmitriano  

      3
      0
      Votes
      3
      Posts
      345
      Views

      @Dmitriano How did you update the build.gradle
    • UNSOLVED Accessing file from Document/ download folder after Scoped storage policy
      Mobile and Embedded • android mobile file android 11 document • • MTCA  

      6
      0
      Votes
      6
      Posts
      261
      Views

      @ekkescorner Assam Boudjelthia has done a great work on this and now prepared cherry-picks for 5.15 🙂 see QTBUG-98974 can someone help and test ?
    • UNSOLVED (Android) Event loop stops on display sleep/screensaver
      Mobile and Embedded • android event loop screensaver • • rdowell  

      1
      0
      Votes
      1
      Posts
      144
      Views

      No one has replied

    • SOLVED Module "QtMobility.gallery" is not installed
      Installation and Deployment • qml android qt 5 qtmobility • • qAminzzz  

      21
      0
      Votes
      21
      Posts
      729
      Views

      @jsulm thank you so much it worked with these code: function: void searchPaths(QVariant path) { QStringList files; // add files to this ( paths ) QStringList filter; // mp4 files filter filter << "*.mp4"; // add filter qInfo("-----"); QDirIterator dir(path.toString(), filter, QDir::Files, QDirIterator::Subdirectories); // get all files in directory while (dir.hasNext()) { qInfo() << dir.next(); files << dir.next(); // } } use: searchPaths("enter path here") now i can sleep easy. thanks
    • SOLVED [QtCreator] commandlinetools-linux-6609375_latest.zip No such file or directory
      Tools • android qtcreator android sdk qtcreator 5.0 • • mbnoimi  

      2
      0
      Votes
      2
      Posts
      168
      Views

      Solved it. The solution was very easy: sudo mkdir /root/Downloads/
    • UNSOLVED How to remove blue focus rectangle getting created on Bluetooth mouse onClick (TextField)
      QML and Qt Quick • qml android textfield onclicked bluetooth mause • • Kuldip Somwanshi  

      4
      0
      Votes
      4
      Posts
      342
      Views

      @Kuldip-Somwanshi that focus rectangle comes from android directly. As far as I know, you can't change that from Qt/Qml code. Maybe you could disable it with some java code / styles, but I don't know how exactly 🤷‍♂️
    • SOLVED How to create a single kit for multiarchs(armv7 and arm64v8) on QtCreator 4.11.1
      Mobile and Embedded • android qtandroid qt 6.0 aab • • mehmetagca  

      3
      0
      Votes
      3
      Posts
      207
      Views

      @jsulm Thanks for your suggestion. I solved that, as i understand it, the problem is Qt 6.0. In Qt setup folder, android architectures(armv7, v8, x86 etc.) are in directory seperately. But Qt Version 5.14.2 merge all android architectures in one folder. Now, i can create common single kit for all android archs. And it helped to me: https://stackoverflow.com/questions/67291379/unable-to-create-android-kits-using-qt-creator Qt 5.14.2 Qt Creator 4.11.1 Android Sdk 26.1.1 Ndk 21.3.6528147