l-v / mosaico

Automatically exported from code.google.com/p/mosaico
1 stars 0 forks source link

GPS Location #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Get location from GPS or allow us to insert a dummy location via latitude and 
longitude.

Original issue reported on code.google.com by rica...@ctrler.eu on 11 May 2011 at 11:38

GoogleCodeExporter commented 9 years ago
So far we can get the longitude and latitude from the GPS and store them in 2 
double varibles.
Also there is a method "getLastKnownLocation". Pretty nice. Get that first 
location in the start up and later on refresh if it is changed.
I am going to play with it a little more and see what's going to happen. 
We can even "getAltitude()" :P cool :P

Original comment by alexande...@gmail.com on 13 May 2011 at 7:03

GoogleCodeExporter commented 9 years ago
Dummy Locations can be given through telnet connection to the device.

Ex.: geo fix -8.593124 41.15645

That's near where I live. Since I use the GPS indoors... not really accurate :D

Original comment by alexande...@gmail.com on 13 May 2011 at 7:06

GoogleCodeExporter commented 9 years ago
Intents are great!

I formatted a link with the coordinages like: 
http://maps.google.com/maps?q=long+latt

and the user can choose an application from his phone how to view it: Browser, 
Google Maps, Locations, other Browser, etc. 

I also played with activities a little, to get how they work :)

Original comment by alexande...@gmail.com on 18 May 2011 at 1:01

Attachments:

GoogleCodeExporter commented 9 years ago
it should be working now. 
After I get feedback from you guys I can close this issue.

Original comment by alexande...@gmail.com on 3 Jun 2011 at 1:15

GoogleCodeExporter commented 9 years ago
When I chose the "Get new one from a map" it was unable to fetch the map 
properly, and it's only showing a white grid with a green pin on my location.

Original comment by joaogusm...@gmail.com on 3 Jun 2011 at 7:01

GoogleCodeExporter commented 9 years ago
i've seen that problem on an AVD. will check. :)

Original comment by alexande...@gmail.com on 3 Jun 2011 at 7:37