0

I created an application using Android GPS. This application shows user's current location name, latitude and longitude, GPS accuracy in Android mobile. I have tested this application in my android device. It was run in my mobile perfectly. But I can not get location name, latitude, longitude and accuracy when I was in Home or building. How do I create Toast text when I am not getting GPS coverage?

Thanks.

sathish
  • 59
  • 9
  • There a literally dozens of reasons why it wouldn't work. Permissions? No GPS signal (you say you are "inside a bldg")? GPS/location services turned off? – debracey Dec 18 '12 at 12:59
  • For localisation within buildings when there is no GPS signal available I'd recommend libwlocate – Elmi Dec 18 '12 at 13:02
  • Refer This Link for checking the GPS Status http://stackoverflow.com/questions/2021176/how-can-i-check-the-current-status-of-the-gps-receiver – Rajeev N B Dec 18 '12 at 13:03
  • @debracey: I have getting location name, lat&long, accuracy out side of the building. But my problem is not getting location details inside the building. – sathish Dec 18 '12 at 13:22

1 Answers1

6

GPS works by connecting to four or more satellites and then triangulating your location by measuring the time it takes for the signal from various satellites to reach you, in a nutshell.

Due to this, you must have a clear view of the sky (sometimes even clouds can interfere), and GPS is unreliable and usually not working inside buildings and in underground locations.

Try using a different form of location tracking like the cell network for tracking the users inside buildings.

Raghav Sood
  • 81,899
  • 22
  • 187
  • 195