Hi,
What is the status of this? I'm at a point now where the feature using positioning is on the radar.
Many thanks.
Sent: Wednesday, August 12, 2015 at 4:09 AM
From: "Federico Buti" <bacaro...@gmail.com>
To: "Kalinowski Maurice" <maurice.kalinow...@theqtcompany.com>
Cc: "Jason H" <jh...@gmx.com>, "interest@qt-project.org" <interest@qt-project.org>
Subject: Re: [Interest] Qt positioning
From: "Federico Buti" <bacaro...@gmail.com>
To: "Kalinowski Maurice" <maurice.kalinow...@theqtcompany.com>
Cc: "Jason H" <jh...@gmx.com>, "interest@qt-project.org" <interest@qt-project.org>
Subject: Re: [Interest] Qt positioning
Hi Maurice, hi Jason.
Thanks for your responses.
I have tested successfully position code previously and it worked. So did one of our customers on an app of mine (android devices). For such reasons I was concerned for what was going wrong yesterday. Then I got the difference: I was using another device! I've tested the one I've used previously and everything worked like a charm. I got the position in less than a second or so.
Given this result (and the positive results of our customers on Galaxy SX phones) I've tested other devices at work: a galaxy tab 2 and a lenovo A806. The former has stock android whereas the latter has been rooted and flashed with AOSP. Neither of the two returned a value, nor timeout was hit.
I plan on reply with the exact results of my tests as soon as I have time to test other devices. I'll also test the examples for sure.
Thanks again,
F.
---
Federico Buti
On 12 August 2015 at 09:28, Kalinowski Maurice <maurice.kalinow...@theqtcompany.com> wrote:
Did you check with the examples provided in the module? If those do not work for you either, then it's time to open a bugreport soon, so that it might get fixed for 5.5.1 then.
BR,
Maurice
> -----Ursprüngliche Nachricht-----
> Von: interest-bounces+maurice.kalinowski=theqtcompany.com@qt-
> project.org [mailto:interest-
> bounces+maurice.kalinowski=theqtcompany....@qt-project.org] Im
> Auftrag von Jason H
> Gesendet: Tuesday, August 11, 2015 4:48 PM
> An: Federico Buti <bacaro...@gmail.com>
> Cc: interest@qt-project.org
> Betreff: Re: [Interest] Qt positioning> _______________________________________________>
>
> > Sent: Tuesday, August 11, 2015 at 8:24 AM
> From: "Federico Buti" <bacaro...@gmail.com>
> To: "interest@qt-project.org" <interest@qt-project.org>
> Subject: [Interest] Qt positioning
>
> Hi list,
>
> I was playing around with positioning on Android and I'm not sure if I'm using
> it properly. I would like to update the position of the cellphone/app ASA the
> user taps on a button. To achieve this result I've setup my project as follows:
> ...
>
> The idea was to activate the GPS only when required, update the value
> (probably with a busy dialog on screen) and deactivate it. I could have used
> the update() method, I know.
> Now, if I execute the code on a device with GPS turned off, I've the error
> "PositionSource.ClosedError". Instead, on the same device with GPS turned
> on the position is never updated. The same occurs in a newly created project
> with just this code added.
> Qt version is 5.5
> What am I missing? What am I doing wrong? The default dialog for GPS
> activation (i.e. the one shown by Googlemaps for instance) is not shown
> when position acquisition is started? Thanks everyone for your time, F.
> --------
>
>
> I've not had any success in iOS or Android. I've got a mobile app that is
> supposed to grab a position and it never does. Here's my setup
> main.qml:
> PositionSource {
> id: positionSource
> }
> Component.onCompleted: {
> positionSource.update();
> }
> later (~90s)... on an event handler:
> if (positionSource.valid)
> root.location = {lat:
> positionSource.position.coordinate.latitude, lon:
> positionSource.position.coordinate.longitude};
> else
> root.location = {lat: null, lon: null};
>
> It never goes valid. One thing to note, is in my work environment, my GPS is
> usually on, and has a fix, so it should already be valid.
>
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest