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. QMYSQL works with minGW c++ desktop application but not works the same code with android_armv7 on android on windows
Forum Updated to NodeBB v4.3 + New Features

QMYSQL works with minGW c++ desktop application but not works the same code with android_armv7 on android on windows

Scheduled Pinned Locked Moved Solved Mobile and Embedded
6 Posts 2 Posters 527 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.
  • KaguroK Offline
    KaguroK Offline
    Kaguro
    wrote on last edited by
    #1

    Hi Guys!
    First of all, yes i see this gide: https://wiki.qt.io/Build_Qt_5_MySQL_Plugin_for_Android
    But this is not so clear for me :( If somebody can guide this for me (if its a real solution for my problem) with some clear steps or a little tutorial video, please help! Its really importent for me, i would be really really grateful for it! :)
    My app is just for practise, i have a mysql server and i just want to write a record date to the somewhere. I tested, work with QT c++ desktop application with mingw and i would like to achive the same with same code just on android and with android_armv7 kit. I use windows 10 64bit and QT5.
    Thanks for helping! :) (sorry if i am still very lame)

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #5

      That is unrelated to Androïd.

      There are lots of possibilities but if you would like to stay with Qt, then the Cutelyst project will be of interest.

      Otherwise, FastAPI is also a simple Python package to get started.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      KaguroK 1 Reply Last reply
      2
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #2

        Hi,

        Yes, building the MariaDB stuff for Androïd is the only solution.

        However, accessing a database like that from a mobile device usually means that you are going to expose said database through internet which is a very bad idea.

        The usual way to do that kind of stuff is to create a REST web service that will do the interaction with the database behind it in a secure environnement. That way you découple the database and you can even change it more easily if needed.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        KaguroK 2 Replies Last reply
        1
        • SGaistS SGaist

          Hi,

          Yes, building the MariaDB stuff for Androïd is the only solution.

          However, accessing a database like that from a mobile device usually means that you are going to expose said database through internet which is a very bad idea.

          The usual way to do that kind of stuff is to create a REST web service that will do the interaction with the database behind it in a secure environnement. That way you découple the database and you can even change it more easily if needed.

          KaguroK Offline
          KaguroK Offline
          Kaguro
          wrote on last edited by
          #3
          This post is deleted!
          1 Reply Last reply
          0
          • SGaistS SGaist

            Hi,

            Yes, building the MariaDB stuff for Androïd is the only solution.

            However, accessing a database like that from a mobile device usually means that you are going to expose said database through internet which is a very bad idea.

            The usual way to do that kind of stuff is to create a REST web service that will do the interaction with the database behind it in a secure environnement. That way you découple the database and you can even change it more easily if needed.

            KaguroK Offline
            KaguroK Offline
            Kaguro
            wrote on last edited by Kaguro
            #4

            @SGaist Oh i see, and how can i create a REST web service? I am so lame about it with android stuff :( Can you give me some example for this? And cominate with my mysql database.
            I would be very grateful for it! :)

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #5

              That is unrelated to Androïd.

              There are lots of possibilities but if you would like to stay with Qt, then the Cutelyst project will be of interest.

              Otherwise, FastAPI is also a simple Python package to get started.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              KaguroK 1 Reply Last reply
              2
              • SGaistS SGaist

                That is unrelated to Androïd.

                There are lots of possibilities but if you would like to stay with Qt, then the Cutelyst project will be of interest.

                Otherwise, FastAPI is also a simple Python package to get started.

                KaguroK Offline
                KaguroK Offline
                Kaguro
                wrote on last edited by
                #6

                @SGaist yeah, i used a rest api and now i get my table in json, ty for help! :D

                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