gps

How can I extract GPS EXIF info from a PNG?

孤人 提交于 2019-12-11 19:38:38
问题 I have approx 1000 PNG photographs which I am told have GPS information stored within them. I have tried numerous web based / downloadable programs to try and extract the EXIF information so I can get the GPS info. I had some success with EXIF tool but there is no GPS info within: Is there some other extraction method that I should be trying or is there no GPS info in the photograph? 来源: https://stackoverflow.com/questions/19492969/how-can-i-extract-gps-exif-info-from-a-png

Force GPS to come on

こ雲淡風輕ζ 提交于 2019-12-11 19:35:15
问题 I asked this question (Why Does Map Marker Lurch Around The Map) yesterday. One thing I noticed today is that for an activity that uses LocationManager, but not a map I get the GPS icon (satalite dish beaming signals up) in the status tray. With the activity that has a map fragment and also uses LocationManager I do not get the GPS icon in the tray. I copied and pasted the location manager code from one activity to the other. Why would the GPS come on some times and not others? Greg 回答1: It

calculating accumulated distance using GPS(cannot call run method)

梦想与她 提交于 2019-12-11 18:55:27
问题 I am still working on a project i have asked a question on here. it is to calculate the accumulated distance a person has traveled or run after a time. I do not know whether i should start a new question or continuing from the first one i asked first since i progress a lot since then and my codes are a lot of different with different errors. i tried to use the debugger in eclipse but it did not work and i don't understand it. The distance accumulating part is what was troubling me and i use

How to get current gps location both online or offline in android?

限于喜欢 提交于 2019-12-11 18:41:54
问题 I want to get the current location working with both online or offline GPS as well the expected behavior of the GPS is: 1. If wifi or 3g networks are available, it will use those to fetch the GPS position. 2. If NO wifi or 3g networks are avaiable it will use the OFFLINE GPS of the tablet (if present) 3. If nothing is present, it will display the Error message. I am trying a lot but not succeeded yet. I am getting network enabled always true. public boolean isGPSEnabled() { Location location

Location tracking windows 8

青春壹個敷衍的年華 提交于 2019-12-11 18:39:54
问题 Im working on a reminder which also supports location-based reminders (eg when you get near your house it tells you to switch off the alarm for example).. I need the app to check the location lets say every 2 minutes (so it doesnt drain the battery too much). What technology should I use? I was thinking about toast notifications but this is to remind the user the he is approaching the location, but there needs to be a background task which checks the location even if the app is not running?

Unable to get location with gps location provider on android device

不打扰是莪最后的温柔 提交于 2019-12-11 18:35:54
问题 I am developing small location based android application in which I need users current location. I am also updating users current location as soon as some change in location is occurred.My code looks like: private final LocationListener locationListener = new LocationListener() { public void onLocationChanged(Location location) { updateWithNewLocation(location); } public void onProviderDisabled(String provider) {} public void onProviderEnabled(String provider) {} public void onStatusChanged

How to calculate the driving distance between two points?

社会主义新天地 提交于 2019-12-11 18:30:59
问题 In my app I am getting the latitude , longitude co-ordinates of places using GeocodeService now I want to get distance between these places. I've tried GetDistanceTo method to get the distance two location co-ordinates but it gives me stright distance. How can I calculate driving distance between two locations? thanks in advance 回答1: To calculate the driving distance you'll have to use the Bing Routes API (or Google, but I assume you're using Bing Maps). There's an example of using the api to

Check if provided location info from fused location provider is from GPS

一个人想着一个人 提交于 2019-12-11 18:12:41
问题 We are using fused location provider and if I query location.getProvider() on the location I'm receiving it returns fused . I would like to check whether the fused provider used GPS or Wifi or both for the location it gave me. is this possible? how? 回答1: The fused provider does not provide you with the specific location provider it only returns fused as you said, if you want to listen for a specific provider you need to use the old LocationManager 来源: https://stackoverflow.com/questions

Service is stopped after a few minuets of inactivity

蹲街弑〆低调 提交于 2019-12-11 18:03:24
问题 I am writing an android app using the GPS location provider in a Service that is started when the main Activity is created (unless the service is already running). I was under the impression that the service would continue to run with the unlikely exception that the task manager could killed it if there was a memory shortage. For some reason the service is restarted if there is a period of very low activity regardless of how much memory is available. When the user is outside and the GPS is

LocationManager in service

冷暖自知 提交于 2019-12-11 17:49:30
问题 Is it possible, to use getSystemService in service? My service class: private LocationManager locationManager; private LocationListener locationListener; IBinder mBinder = new LocalBinder(); public interface interfaceLocationService { public Location currentBestLocation = null; public void startListenLocation(); public void stopListenLocation(); public Location getUserLocation(); } @Override public IBinder onBind(Intent intent) { return mBinder; } public class LocalBinder extends Binder