I am using LocationManager to get the current location in android.for that ,i have used
mlocManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, mlocListener);
GPS_PROVIDER as a service provide.while executing it returns null and shows the following in the log cat continuously.
V/libgps ( 116): DeferredActionThread pthread_cond_wait returned
Thanks in advance.
}
I am using this code for getting latitude and longitude of current location of the user.
You should read it then convert it according to your requirement and also add the permission of using GPS in manifast file of your project.It is.
<uses-permission android:name="android.permission.ACCESS_GPS" /><uses-permission android:name="android.permission.ACCESS_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
I hope this is very helpful to you.