hi,
i have data/laocation/gps folder in emulator.
i pushed kml file into gps folder.
i am using gps provider in my code,trying to get coordinates from kml
file and display on phone.

for (String provider : providers) {
                sb.append("\n").append(provider).append(":");
                Location location = locationManager.getLastKnownLocation("gps");

                                if (location != null) {
                                        double lat = location.getLatitude();
                                        double lng = location.getLongitude();
                                        sb.append(lat).append(",").append(lng);
                                }
                                else
                                {
                                        Location myLocation =  
locationManager.getLastKnownLocation
("gps");
                                        sb.append("No Location");
                                }
                dispText.setText(sb);
                }
provider it is displaying as gps correct only,but location always 0,0
means nolocation...is coming
what could be the problem
regards,
android_d


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

Reply via email to