Skip to content

Mobile and Embedded

The forum for developing everything embedded: Linux, WinCE, Symbian, MeeGo... you name it.
14.1k Topics 62.6k Posts
  • This topic is deleted!

    Solved
    4
    0 Votes
    4 Posts
    49 Views
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • Android + QT5.7 + MSVS experience?

    Unsolved qt 5.7 android visual studio
    1
    0 Votes
    1 Posts
    613 Views
    No one has replied
  • This topic is deleted!

    Solved
    16
    0 Votes
    16 Posts
    77 Views
  • Embedding a QML component into native Android UI

    Unsolved
    1
    0 Votes
    1 Posts
    376 Views
    No one has replied
  • The OpenGL ES 2.0 functionality test failed!

    15
    0 Votes
    15 Posts
    25k Views
    small_birdS
    @citiustech I have the same problem, have you solved that? Could you help me? Thanks in advance!
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    29 Views
    No one has replied
  • Configuring Qt for iMX6 Sabre Solox board

    Solved
    4
    0 Votes
    4 Posts
    2k Views
    small_birdS
    @cKol1313 Hi, I know that if you configure like this: "./configure -device linux-imx6-g++ -confirm-license -opensource -device-option CROSS_COMPILE=arm-linux-gnueabihf- -static -no-compile-examples -no-xcb -no-qml-debug -no-sql-sqlite -no-tslib -qreal float -prefix /usr", it works. However, it has no opengl es at all. If I want to hold the opengl feature, how should I do? Thanks in advance!
  • Problem to get OpenGL support with Qt 5.3.2 embedded

    Solved
    5
    0 Votes
    5 Posts
    4k Views
    small_birdS
    @MorganeJ Hi, I wonder how you can cross compile qt5 using a desktop-opengl? Should it be opengl es2? Cound the opengl edition you compiled work well on your embedded board? Thanks in advance!
  • How to call intents from Qt app in Android?

    Solved
    3
    0 Votes
    3 Posts
    859 Views
    X
    Finally I followed the instructions described here: http://blog.lasconic.com/share-on-ios-and-android-using-qml/ Using part of the code available here: https://github.com/lasconic/ShareUtils-QML So, I could implement the "share" feature quickly and with no issues :)
  • QMediaPlayer “Failed to load media” on iOS

    19
    0 Votes
    19 Posts
    5k Views
    G
    Any update on this?
  • Scale QPixmap has no effect

    Solved
    4
    0 Votes
    4 Posts
    982 Views
    T
    Wow you are right ! Now it works as expected ! Thank you so much, I've been looking for a solution for like a week !
  • 0 Votes
    2 Posts
    1k Views
    T
    @T_Eng Also to say that my GUI is Qt Quick Qml code and I am trying to fill a TextField qml type
  • Voice recording encoding problem

    Unsolved
    3
    0 Votes
    3 Posts
    668 Views
    D
    You've already asked this question: Audio recording Depending on what device you are using to record the audio, you may be limited to your available codecs. AFAIK, Qt does not provide codecs, just an interface to access them. You'd have to encode in a format native to your hardware and convert after the fact, or find a third-party codec you can integrate with your application and post-process the recorded audio after the fact.
  • Compiling a library for Android

    Unsolved
    17
    0 Votes
    17 Posts
    6k Views
    V
    Yes, I'm pretty sure I called it on the correct library. Or at least I thought it is the correct library. I found it here. I hope I will have some time over the weekend to try to compile it myself.
  • Capture native resolution pictures

    Unsolved
    1
    0 Votes
    1 Posts
    386 Views
    No one has replied
  • How to run qt application from another qt application on android

    Solved
    6
    0 Votes
    6 Posts
    2k Views
    B
    @raven-worx: Thanks i reffered following link to solve this issue: http://stackoverflow.com/questions/2780102/open-another-application-from-your-own-intent Thanks all. Bahubali P S
  • Unable to Deploy Android Application

    Unsolved
    15
    0 Votes
    15 Posts
    7k Views
    S
    So I just had a breakthrough, that resulted in the application showing up on my phone. After building the project in Qt, I go to the build directory in a command line prompt, and type: mingw32-make install INSTALL_ROOT=.\Deploy androiddeployqt --output .\Deploy --install --input android-libcalqlatr.so-deployment-settings.json And lo and behold, the application is installed on the device. Why doesn't Qt Creator do this automatically?
  • QSqlquery exec and prepare sometimes stuck

    Unsolved
    6
    0 Votes
    6 Posts
    2k Views
    kshegunovK
    I think you either have some strange race condition, or the connection to the database is dropped/busy so the prepare and/or exec are lagging.
  • Qt Android image picker issue with Android > 5.5.1

    Unsolved
    3
    0 Votes
    3 Posts
    2k Views
    G
    Hi, at the moment I'm using Qt c++ code and it works. Here's the example: void AndroidImagePicker::openPicker() { QAndroidJniObject Intent__ACTION_PICK = QAndroidJniObject::getStaticObjectField("android/content/Intent", "ACTION_PICK", "Ljava/lang/String;"); qDebug() << "AndroidImagePicker Intent__ACTION_PICK.isValid()=" << Intent__ACTION_PICK.isValid(); QAndroidJniObject EXTERNAL_CONTENT_URI= QAndroidJniObject::getStaticObjectField("android/provider/MediaStore$Images$Media", "EXTERNAL_CONTENT_URI", "Landroid/net/Uri;"); qDebug() << "AndroidImagePicker EXTERNAL_CONTENT_URI.isValid()=" << EXTERNAL_CONTENT_URI.isValid(); QAndroidJniObject intent=QAndroidJniObject("android/content/Intent", "(Ljava/lang/String;Landroid/net/Uri;)V", Intent__ACTION_PICK.object<jstring>(), EXTERNAL_CONTENT_URI.object<jobject>() ); qDebug() << "AndroidImagePicker intent.isValid()=" << intent.isValid(); QtAndroid::startActivity(intent, 101, this); } void AndroidImagePicker::handleActivityResult(int receiverRequestCode, int resultCode, const QAndroidJniObject &data) { jint RESULT_OK = QAndroidJniObject::getStaticField<jint>("android/app/Activity", "RESULT_OK"); if( receiverRequestCode == 101 && resultCode == RESULT_OK ) { QAndroidJniObject uri = data.callObjectMethod("getData", "()Landroid/net/Uri;"); qDebug("AndroidImagePicker uri = %s", qPrintable(uri.toString())); QAndroidJniObject dadosAndroid = QAndroidJniObject::getStaticObjectField("android/provider/MediaStore$MediaColumns", "DATA", "Ljava/lang/String;"); QAndroidJniEnvironment env; jobjectArray projecao = (jobjectArray)env->NewObjectArray(1, env->FindClass("java/lang/String"), NULL); jobject projacaoDadosAndroid = env->NewStringUTF(dadosAndroid.toString().toStdString().c_str()); env->SetObjectArrayElement(projecao, 0, projacaoDadosAndroid); QAndroidJniObject contentResolver = QtAndroid::androidActivity().callObjectMethod("getContentResolver", "()Landroid/content/ContentResolver;"); QAndroidJniObject nullObj; QAndroidJniObject cursor = contentResolver.callObjectMethod("query", "(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;", uri.object<jobject>(), projecao, nullObj.object<jstring>(), nullObj.object<jobjectArray>(), nullObj.object<jstring>()); qDebug() << "AndroidImagePicker cursor.isValid()=" << cursor.isValid(); jint columnIndex = cursor.callMethod<jint>("getColumnIndexOrThrow","(Ljava/lang/String;)I", dadosAndroid.object<jstring>()); qDebug() << "AndroidImagePicker column_index=" << columnIndex; cursor.callMethod<jboolean>("moveToFirst"); QAndroidJniObject path = cursor.callObjectMethod("getString", "(I)Ljava/lang/String;", columnIndex); qDebug() << "AndroidImagePicker path.isValid()=" << path.isValid(); QString imagePath = "file://" + path.toString(); qDebug() << "AndroidImagePicker path" << imagePath; cursor.callMethod<jboolean>("close"); emit imagePathRetrieved(imagePath); } else qWarning() << "AndroidImagePicker wrong path"; } #ifndef ANDROIDIMAGEPICKER_H #define ANDROIDIMAGEPICKER_H #include <QObject> #include <QtAndroidExtras> #include <QDebug> class AndroidImagePicker : public QObject, public QAndroidActivityResultReceiver { Q_OBJECT public: AndroidImagePicker(); void openPicker(); virtual void handleActivityResult(int receiverRequestCode, int resultCode, const QAndroidJniObject &data); signals: void imagePathRetrieved(QString imagePath); }; #endif // ANDROIDIMAGEPICKER_H