Fetching GPS location with the Recon Jet

126 views
Skip to first unread message

Jules Jansen

unread,
Oct 17, 2013, 11:02:55 AM10/17/13
to recon-de...@googlegroups.com
Hi,
I am currently coding an app for the Recon Jet, but I have some doubts about how to fetch the current location of the user.
I see that you can easily register a "location handler" as:

ReconSDKManager reconManager = ReconSDKManager.Initialize(this);

reconManager.receiveData(new LocationHandler(), ReconEvent.TYPE_LOCATION);


In this LocationHandler class (which implements IReconDataReceiver) I can fetch the latitude and longitude in the onReceiveCompleted(...) function.

But how does this work? Will this only be called once? So will I only receive a location fix once when I call receiveData?

Or will this provide me a constant feedback on my location when moving?

Because that is what I'd need. Basically the same question would go for registering a SpeedHandler or a DistanceHandler.


In case this only returns a single location fix, I would be forced to constantly query the reconManager.receiveData(...) or use the standard Android LocationManager class.


Thanks for your feedback,

Jules.

b...@shand.org.uk

unread,
Oct 17, 2013, 7:00:32 PM10/17/13
to recon-de...@googlegroups.com
From Kyle the other day

You are correct. The camera/mic/GPS are all accessed via normal Android 4.1 functionality. 
Reply all
Reply to author
Forward
0 new messages