android-location
LocationListener sometimes getting called right after LocationManager.removeUpdates()
My activity sometimes crashes when it goes out of view.It uses a LocationListener to receive location updates and show them on the screen.Here is the relevant code.[详细]
2023-04-12 00:34 分类:问答How to check if LocationManager.NETWORK_PROVIDER is available?
How to check if LocationManager.NETWORK_PROVIDER is available? I enabled in AndroidManifest.xml but I need to check that in code and if is not available to use GPS_PROVIDER. Can someone开发者_开发问[详细]
2023-04-11 07:58 分类:问答Android GPS Location Update Method does not work in OnCreate of Map activity
I am facing a problem with the LocationManager class: I want to update my current location in onCreate() of a class extended from MapActivity:[详细]
2023-04-07 09:47 分类:问答Find exhaustive list of restaurants around a location within a specified radius in android
I am working on an Android App. I want to get list of all restaurant around me within a specified radius(let say 5 miles). I tried using Google places API and it works, however it limits the number re[详细]
2023-03-31 11:05 分类:问答cell location indoors
My question is simple, how in the heavens do I开发者_StackOverflow get the exact location of a cell phone which is indoors, GPS wont work since it requires clear skys. Network Provider of the Location[详细]
2023-03-28 04:14 分类:问答How to Obtain The User Address By Knowing their Longitude and Latitude
I am using LocationManager in android application to obtain the user current coordinates. It works fine for me but the second step I 开发者_JAVA技巧want to display the formatted address to the user in[详细]
2023-03-25 18:38 分类:问答Stop Location Listener in Android
In my android app I need to get current GPS location of the user at the start of the a开发者_高级运维pplication only if location has change from the previous location. But the problem is when I inside[详细]
2023-03-24 00:10 分类:问答location code example doesn't work
I am trying to run the code below to get the user location (altitude/latitude/longitude) but it\'s not working. On logCat I am getting the following error messages:[详细]
2023-03-20 22:31 分类:问答FINE_LOCATION has less accuracy than COARSE_LOCATION
As per my understanding of accessing Location on Android: The Location Provider needs permission ACCESS_COARSE_LOCATION, has a lower accuracy, but is faster in retrieving location.[详细]
2023-03-16 14:56 分类:问答Problem with getting latitude and longitude of current location
i want to get latitude and longitude by using gps ..my code is works successfully but it works too slow.[详细]
2023-03-15 09:39 分类:问答