hi,
locationmanger = (LocationManager)getSystemService
(Context.LOCATION_SERVICE);
location =locationmanager.getLastKnownLocation("gps");
Log.v(TAG,"location obj"+location);

The Log shows null instead of location object

I am using emulator to test my code ,I have written appropriate
permissions,i am using android1.5 ,
I could not figure out the reason
In eclipse after switching to DDMS mode , Emulator Controls tabs shows
Location Controls. From here, we can view longitude/latitude
coordinates to the device.Is there any way to bring down those data
into my activity . Is this only way to get longitude and latitude when
test with emulator.
Please guide me
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to