Android with QT 5.2 and QT Quick: How to include a google maps view?
-
I see. I've corrected my post in that clever-tanken.de indeed comes with a built-in map. However, that map is fixed to Google Maps using the "Google Maps Android API":http://developer.android.com/google/play-services/maps.html. That's why clever-tanken.de can also fire off the mentioned intent in order to use a custom installed map app.
As for the details about how to use Android fragments with QtQuick in order to embed Google Maps, I'm sorry I have to pass on that one.
-
Ok, maybe one day qt will support the google maps android api and can be used inside a simple rectangle :)
Thanks for your input on that topic.
-
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.
-
Ok :/
-
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)
-
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/
-
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
-
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?
-
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/
-
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.
-
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.QtHangmanI'm not sure at all that it helps us but just trying to be hopeful here. :)
-
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 ;)
-
"Mæp-qt":https://openrepos.net/content/dcaliste/maep-qt may help you