gps

How to keep GPS turned on when switching between activities but off when when “home” is pressed

无人久伴 提交于 2019-12-21 06:18:11
问题 I am trying to figure out the best way to implement Listener to location with the onResume and onPause. Best I can do not it to turn it off on onPause and reconnect on onResume. But then I keep having disconnect-reconnect when all I want is for the GPS to stay on for the duration of the application. When Home is pressed (or another application is interrupting) then GPS can be downed off for battery saving. Any ideas? Thanks. 回答1: Your question can be generalized to "How do I tell when my app

How can I detect if user disable GPS (Android - Play Services)

混江龙づ霸主 提交于 2019-12-21 06:15:07
问题 I use gms.location.LocationListener (Google Play Services) to get the user's location. It works fine but I want to detect whenever the user disables or enables his/her GPS. As in this picture. When I turn ON/OFF location no methods are called. When I switch apps and return to my app this methods are called: onStart onResume onConnected But I need the event to be called whenever the user turns ON/OFF location those events I listed don't get called. Note: With Android API I am able to get those

Get location details using WiFi

半城伤御伤魂 提交于 2019-12-21 06:09:20
问题 I am creating an small application in Android, which points the current location. I have used GPS-provider for that, but found out that I won't get the data using GPS-provider at some places. Can any one help me in getting this? 回答1: If you are connected to WIFI then simply use NETWORK PROVIDER for your location updates. they will be fast and enough accurate too. generally if location updates are not required so frequently then location updates are asked from both GPS and NETWORK together at

Excel VBA open folder and get GPS info (Exif) of each files in it

大城市里の小女人 提交于 2019-12-21 05:49:49
问题 Guided by Jzz and David on another post, I discovered a VBA userform and modules that can be imported to Access DB or Excel that will ask you to select a file and it will display the EXIF external info of that file particularly GPS Longitude, Latitude, and Altitude. My question is how do I convert this so it opens a folder instead and retrieves the GPS info on each of the files in that folder. I know it may need to loop through the contents of a folder but I have no idea how to convert this.

Powershell: Getting GPS Coordinates in Windows 10 - Using Windows Location API?

落花浮王杯 提交于 2019-12-21 05:41:24
问题 I'm looking for a way to gather internal GPS data from a powershell script using Windows Location API, as the Windows Location Platform is no longer able to satisfy the need. Previously, there was a com object to use. Is there a way for this to be accomplished in Windows 10? 回答1: An example of using the System.Device.Location method, this should be what you're looking for. Add-Type -AssemblyName System.Device #Required to access System.Device.Location namespace $GeoWatcher = New-Object System

Nearest GPS coordinate based on distance from a given point

淺唱寂寞╮ 提交于 2019-12-21 05:31:20
问题 I have a list of GPS locations in a MySQL server database. The user will be entering a GPS coordinate in the application and he should get the nearest GPS coordinate. I don't mind the distance calculation is based on "crow's flight" or anything else. It should be fast enough to search thousands of GPS locations. I prefer solution in C#, else I will try to get the logic and apply myself. 回答1: There's one question on MySQL lat/long distance search in Need help optimizing a lat/Lon geo search

What's the most efficient way to create routes on google maps from gps files?

∥☆過路亽.° 提交于 2019-12-21 04:52:26
问题 I want to display my bicycle routes on Google maps. All the coordinates are recorded by my GPS and stored in .gpx file format. I'd like to know what's the best approach/file formats/storage/loading the coordinates on Google Maps. This is a good example but it doesn't seem to be working. 回答1: You may be interested in checking out the following article, fresh from the Google Geo Developers Blog: Map your data with the Maps API and Fusion Tables Quoting the introduction: If you have ever tried

Android GPS on or off state

梦想的初衷 提交于 2019-12-21 04:37:19
问题 Is there any way to check if the Android GPS is on or off without any permission, just the state I don't need to toggle it. Thanks 回答1: No. Checking GPS Status on Android requires android.permission.ACCESS_FINE_LOCATION The code to check the status of GPS LocationManager manager = (LocationManager) getSystemService(Context.LOCATION_SERVICE ); boolean statusOfGPS = manager.isProviderEnabled(LocationManager.GPS_PROVIDER); 回答2: steps - Create services running in backgroud You require following

python: elegant way of finding the GPS coordinates of a circle around a certain GPS location

放肆的年华 提交于 2019-12-21 04:28:35
问题 I have a set of GPS coordinates in decimal notation, and I'm looking for a way to find the coordinates in a circle with variable radius around each location. Here is an example of what I need. It is a circle with 1km radius around the coordinate 47,11 . What I need is the algorithm for finding the coordinates of the circle , so I can use it in my kml file using a polygon. Ideally for python. 回答1: Use the formula for "Destination point given distance and bearing from start point" here: http:/

Android Fake GPS location apps do not work anymore

╄→гoц情女王★ 提交于 2019-12-21 04:19:10
问题 I used to work with this application: https://play.google.com/store/apps/details?id=com.fakegps.mock&hl=en And before this with this one: https://play.google.com/store/apps/details?id=com.incorporateapps.fakegps.fre&hl=en Am working on a LG G3 and a Nexus 5, but in the last couple of days, the fake location doesn't work as it should. It doesn't always modify my location and sets in where I want. Or many times, it sets my location where I want for a couple of seconds and then resets to my real