mystic-d wrote:
> hey
> im trying to use a kml file as a location provider and my lat and long
> is always 0 ,
> the code is:
>
> LocationManager locationManager =
> (LocationManager)getSystemService(Context.LOCATION_SERVICE);
> Location myLocation = locationManager.getCurrentLocation("gps");
The name you want to use for getCurrentLocation() is the name of your
location provider (i.e., the name you gave to the directory where you
placed your data, for the emulator). Did you name yours "gps"?
--
Mark Murphy (a Commons Guy)
http://commonsware.com
The Busy Coder's Guide to Android Development -- coming in June 2008!
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---