Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Android with QT 5.2 and QT Quick: How to include a google maps view?
Qt 6.12 LTS is out! See what's new in the release blog

Android with QT 5.2 and QT Quick: How to include a google maps view?

Scheduled Pinned Locked Moved Mobile and Embedded
19 Posts 8 Posters 11.9k 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.
  • S Offline
    S Offline
    sschuberth
    wrote on last edited by
    #9

    After talking to a colleague of mine again, what you want to achieve indeed does not seem to be possible yet. He said that Qt for Android and Android Java apps are running completely separate rendering stacks, so one would need to somehow pass the OpenGL surface of the Google Maps Java app fragment to the native Qt app, and that's not trivial at all.

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #10

      Ok :/

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #11

        Well, it seems that this topic is currently addressed:

        http://www.golem.de/news/kdab-qt-fuer-android-erleichtert-gl-app-entwicklung-1401-104090.html

        (mixing opengl and non opengl qt widgets)

        1 Reply Last reply
        0
        • JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #12

          If I've understood the article correctly, work is currently being done to enable use cases like yours: http://www.kdab.com/future-qt-android-looks-bright/

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #13

            I too hope this gets addressed, I would say that for a large number of apps, the ability to include a basic map and/or satellite view should be considered a primary use case for a mobile device.

            rgds

            1 Reply Last reply
            0
            • ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #14

              I was wondering as there is a Google map app in every android device nowadays, can’t I just send coordinates from my app to the Google map app and lunch the Google map app with these coordinates?

              1 Reply Last reply
              0
              • D Offline
                D Offline
                DonRico
                wrote on last edited by
                #15

                Hi

                As I understand we reached a dead end with this thread and we can't use Google Maps Android API to show google maps inside Qt android app.

                Another solution to this would be to use web base google maps and the missing web view problem could be maybe resolved similar way as a Facebook login page was integrate in another thread https://qt-project.org/forums/viewthread/37317/

                1 Reply Last reply
                0
                • ? Offline
                  ? Offline
                  A Former User
                  wrote on last edited by
                  #16

                  But in that example a whole new Android Activity is launched, which will show the map in a new fullscreen "window". But many users want an embedded view. Otherwise you could just use QtAndroidExtras to fire an intent which loads a google maps Activity.

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    DonRico
                    wrote on last edited by
                    #17

                    Hi

                    Well it seems that qt activities are extendable which means (at least looks like that) that you can show standard android component in Qt android app.

                    As an example see and try Qt hangman and it's in-app purchase:
                    "Screenshot":https://www.dropbox.com/s/p0472uaq3u75pau/android_inapp.png
                    "Source":https://github.com/eskilblomfeldt/qthangman
                    "PlayStore":https://play.google.com/store/apps/details?id=com.digia.QtHangman

                    I'm not sure at all that it helps us but just trying to be hopeful here. :)

                    1 Reply Last reply
                    0
                    • ? Offline
                      ? Offline
                      A Former User
                      wrote on last edited by
                      #18

                      The overwriting of an Activity sounds interesting and could lead to a solution, although the payment screen of hangman is still an overlay.

                      Btw. didnt want to sound offensive with the previous, any help is of course appreciated :) Just wanted to clear requirements up ;)

                      1 Reply Last reply
                      0
                      • V Offline
                        V Offline
                        Vincent007
                        wrote on last edited by
                        #19

                        "Mæp-qt":https://openrepos.net/content/dcaliste/maep-qt may help you

                        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
                        • Unsolved