You need to read the documentation of the Geocoder component very 
carefully. It states that it is basically just a stub. The presence of a 
real implementation depends on the device. Some devices do not have an 
implementation at all and therefore you'll always get null as a result.

If you are coding for API level 9 you can check the presence of an 
implementation with the "isPresent" method. If you really need to provide 
this location service for any device you'll have to bite the bullet and 
code your own fallback solution that queries geolocation web services like 
GeoNames.org or similar.


On Sunday, December 2, 2012 9:20:32 AM UTC-6, leenolasco wrote:
>
> I have a working code that would add overlays in the mapview, i tested it 
> on my phone and it was working fine pinning the proper query. but when i 
> tested it on my brothers mobile phone i would always display no location 
> found. What seems to be the problem here? This is the line where it checks 
> the address size.
>
> if(addresses==null || addresses.size()==0){Toast.makeText(getBaseContext(), 
> "No Location found", Toast.LENGTH_SHORT).show();
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to