Strange Thing About Location Sensor in Hong Kong

Hi Gordon.

Show an image of all your Blocks to get help.

There could be several issues:

  • your Blocks might not be optimal. Have you tried the two aia's that are part of Using the Location Sensor ? Do you get the same results?

The tutorial probably answers your question. The initial satellite fix might take 30 to 60 seconds or more to produce coordinates. Hong Kong is a canyon of buildings. The buildings may Block line-of-sight between the required satellites and your Android at some locations within the highly populated city/region. To elicit an LocationChanged event, the gps receiver needs to 'see' at least three satellites. Depending on where you are at, that might take a while. Are you testing in an apartment? Then go outside, perhaps to a city park, you might have a better result.

Why No adddress available displays instead of a street address is discussed in this tutorial HOW TO: Parse a LocationSensor's Current Address by SteveJG . Simply. a user may receive that message if no address can be resolved using the current gps coordinates in Google's database. The CurrentAddress must be in Google's database. If the database does not have an 'address' associated with the current coordinates you get the default message.

The message appears to users when they are in the middle of farm land where there are no addresses; in large cities for some locations where addresses are ill defined and if Google is Blocked from receiving that information and for other reasons.

3 Likes