netsistemas Active Member Licensed User Longtime User Dec 31, 2020 #1 I view and use a GPS DEMO PROYECT from GPS / GNSS tutorial The GNSS library replaces the old GPS library. The GNSS library is available here: https://www.b4x.com/android/forum/threads/gnss-library-an-updated-gps-library.109110/#content Using it is quite simple: 1. Checking whether location services are available. If not take the user to the... www.b4x.com but, in a house (no street), the app return several satellites, but no lat and lon why? i view others app, that return the position in same site (my office/house). like this: GPS Data - Apps on Google Play Check GPS coordinates, altitude, speed, location and all other GPS data. play.google.com Attachments im1.png 354.1 KB · Views: 758 im2.png 271.5 KB · Views: 748
I view and use a GPS DEMO PROYECT from GPS / GNSS tutorial The GNSS library replaces the old GPS library. The GNSS library is available here: https://www.b4x.com/android/forum/threads/gnss-library-an-updated-gps-library.109110/#content Using it is quite simple: 1. Checking whether location services are available. If not take the user to the... www.b4x.com but, in a house (no street), the app return several satellites, but no lat and lon why? i view others app, that return the position in same site (my office/house). like this: GPS Data - Apps on Google Play Check GPS coordinates, altitude, speed, location and all other GPS data. play.google.com
roumei Active Member Licensed User Dec 31, 2020 #2 Latitude and longitude are only available if the GPS sensor has got a fix. Having a fix means that your phone can 'see' several satellites (usually more than 4) and that the location is more or less stable. Your log shows satellites but there is no fix and thus no latitude and longitude. You should never test GPS indoors, it's just not reliable because not enough satellites are visible. (I know what I'm talking about because I developed a hiking app and did hundreds of kilometers while testing). Other apps might use additional information like WiFi networks or cached locations but their GPS signals are not better. All apps rely on the same GPS sensor in the phone. I don't know the other app but it reports Fixed/All 0/16, that's probably meaning that this app doesn't have a fix either. Upvote 0
Latitude and longitude are only available if the GPS sensor has got a fix. Having a fix means that your phone can 'see' several satellites (usually more than 4) and that the location is more or less stable. Your log shows satellites but there is no fix and thus no latitude and longitude. You should never test GPS indoors, it's just not reliable because not enough satellites are visible. (I know what I'm talking about because I developed a hiking app and did hundreds of kilometers while testing). Other apps might use additional information like WiFi networks or cached locations but their GPS signals are not better. All apps rely on the same GPS sensor in the phone. I don't know the other app but it reports Fixed/All 0/16, that's probably meaning that this app doesn't have a fix either.
netsistemas Active Member Licensed User Longtime User Dec 31, 2020 #3 and how i can access to this other thenics: Network, cache, etc? my custome say me that other app, can show lat and lon (and that is true), and why my app no? i can't say that the ubication are not correct. Exact location is not very important but he need some aproximate location. Upvote 0
and how i can access to this other thenics: Network, cache, etc? my custome say me that other app, can show lat and lon (and that is true), and why my app no? i can't say that the ubication are not correct. Exact location is not very important but he need some aproximate location.
roumei Active Member Licensed User Dec 31, 2020 #4 FusedLocationProvider might be the solution: FusedLocationProvider + Resolution Dialog | B4X Programming Forum Upvote 0
FusedLocationProvider might be the solution: FusedLocationProvider + Resolution Dialog | B4X Programming Forum