gps(open) function is not working android v5.5 and v6.0

Discussions about creating CAPI applications to run on Android devices
Forum rules
New release: CSPro 8.0
Post Reply
Enkhbayar
Posts: 68
Joined: November 10th, 2014, 11:48 pm

gps(open) function is not working android v5.5 and v6.0

Post by Enkhbayar »

in CSPro-7, gps(open) function is not working android v5.5 and v6.0, return value is 0. GPS function is enabled both devices. Is it bug? does anyone have any idea how to solve it?

but it works when we tried on the device with has android v.7
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: gps(open) function is not working android v5.5 and v6.0

Post by josh »

GPS is working fine for me in CSPro 7 on Android 6. Are you sure the device you are testing on has a working GPS?
Enkhbayar
Posts: 68
Joined: November 10th, 2014, 11:48 pm

Re: gps(open) function is not working android v5.5 and v6.0

Post by Enkhbayar »

Thanks Josh, you were right. it was hw issue.
diaznhugo
Posts: 18
Joined: December 1st, 2016, 7:24 am

Re: gps(open) function is not working android v5.5 and v6.0

Post by diaznhugo »

Cspro 7 gps location work on android 7?
Hugo Diaz Nuñez
Dominican Republic
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: gps(open) function is not working android v5.5 and v6.0

Post by josh »

I have used GPS in CSPro it on just about every version of Android 4.2, 4.2, 5.0, 6.0, 7.0, 8.0.
diaznhugo
Posts: 18
Joined: December 1st, 2016, 7:24 am

Re: gps(open) function is not working android v5.5 and v6.0

Post by diaznhugo »

Hi Josh, I have a Samsung Tablet with Android 6.0 and 7.0 and dont work the gps correctly. How i can test if the Cspro is not compatible with the hw.

Because with google maps work fine the gps.

Find GPS Coordenate
Screenshot_20171117-124825.png
Screenshot_20171117-124825.png (116.49 KiB) Viewed 7142 times
GPS error!
Screenshot_20171117-124843.png
Screenshot_20171117-124843.png (77.46 KiB) Viewed 7142 times
Thanks
Hugo Diaz Nuñez
Dominican Republic
jfigueroa
Posts: 100
Joined: August 28th, 2014, 12:46 pm

Re: gps(open) function is not working android v5.5 and v6.0

Post by jfigueroa »

Hi diaznhugo,

Solo para estar seguros, prueba colocar el idioma del dispositivo en Ingles (Estados Unidos) e intenta obtener la lectura GPS nuevamente.
Asegurate de estar completamente en el exterior, y no en el interior de un edificio, por ejemplo.
Tal vez eso pueda ayudar a que obtengas la lectura.

Just to make sure, try setting up the device language to English (US), and then try to get GPS reading again.
Also, when you do it, make sure that you are completely outside, not inside a building for example, cause that may cause bit of troubles.
Hope that it would help.

Saludos.
Regards.
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: gps(open) function is not working android v5.5 and v6.0

Post by josh »

As Joshua said, it is important to be outside in clear view of the sky. Google maps uses a combination of GPS hardware, cell towers and wifi signals to compute a location which means it can work inside even when the GPS satellites are not reachable. CSPro uses only the GPS satellites. This gives a more precise location but means that you need to be able to connect to the satellites. Also you way want to increase the timeout on the GPS read. Try setting it to 5 minutes and see if that works. I have found that sometimes it takes a while the first time and after that I can decrease the timeout to 30 seconds or a minute.
Post Reply