gps

How to get inside private static Tuple, and use numericUpDown to change Math.Round

僤鯓⒐⒋嵵緔 提交于 2019-12-24 21:59:59
问题 this is my part of code to parse a NMEA data ( source here Plot chart using values from richTextBox C#) . This function get back latitude from richTextBox, and convert it to decimal notation. I need it, to plot charateristic from 4 another GPS module (to compare accuracy all four GPS). This is my problem. I want to use a "numericUpDown" to change Math.Round (below I have value - 11). I cant get inside Tuple because I have error (I tried to do something, but it didnt work). Can anybody know,

Location-aware applications on WP7.5

泄露秘密 提交于 2019-12-24 20:22:14
问题 I would like to create a location-aware application on WP7.5 Is it possible to automatically get a trigger on location change without our application running on background? For example: I would like to know if a user has moved in a new location. If the user has moved I would like to trigger a specific event from my application. My only concern is that if I do that from my application I will consume a significant amount of battery. Is it a specific WP7 service which can inform my application

Updating user's location

泄露秘密 提交于 2019-12-24 20:16:40
问题 I'm having some trouble with Google Maps. I need to display user's location on the map and then update it. I'm using a default marker. However, the way my code is currently set up, it adds a new marker every time OnLocationChanged is called. I want it to just update that one marker or remove old one as it adds a new one with current location. Here's the code: public class GoogleMapActivity extends FragmentActivity implements LocationListener { Double longitude_user, latitude_user; LatLng

Coordinates.speed always returns as 'null'

我们两清 提交于 2019-12-24 19:36:54
问题 I am trying to develop a system where the particles on the background change their speed accordingly to the speed of the device (while you are in a car or bus, for example). For this, the Geolocation API sounded like a great option, with the Coordinates.speed property. The problem is that my speed is always returning as null . From what I've read, it should be a device-related issue, but I have tried with a Nexus 6p, a Mac, a Samsung tablet and an iPad, always with the same null answer in the

Send spoof locations with DDMS emulator control to a tablet android device

久未见 提交于 2019-12-24 17:24:30
问题 I want to test a GPS application I am developing in my android tablet, so I need to send to it spoof locations from a KML file loading it using DDMS. I want to use a physical device, not the emulator. The problem is that the Emulator Control section in DDMS is disabled (grayed out) when I select my external device (the app process running) in the devices view. Insted if I select the emulator then the emulator control appears enabled but not with the physical device. My applicaton has <uses

Location calculation- is UTM appropriate?

落爺英雄遲暮 提交于 2019-12-24 17:12:42
问题 I'm wanting to calculate the location of point D, based on the location of point A B and C where I know the angle of point A relative to D and D relative to B and c relative to D. In real terms, points A B and C are 3 locations i have marked with my GPS and point D is the location of a radiocollared animal I'm attempting to get a GPS location on. The angles I gain by knowing in which direction the radio collared animal is relative to north. I've written the algorithm, but I know I can't put

Get gps coordinates with asyncTask

孤人 提交于 2019-12-24 15:12:43
问题 i need to get my current coordinates. i try next, but it is does not get result. public class FragmentNear extends SherlockFragment implements android.location.LocationListener { @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { locationManager = (LocationManager) getActivity().getSystemService( Context.LOCATION_SERVICE); locationManager.requestLocationUpdates( LocationManager.GPS_PROVIDER, 0, 0, this); v = inflater.inflate(R.layout

Android onLocationChanged and MainActivity class

非 Y 不嫁゛ 提交于 2019-12-24 14:01:14
问题 I have the following code: public class MyLocationListener implements LocationListener { @Override public void onLocationChanged(Location loc) { // called when the listener is notified with a location update from the GPS Log.d("Latitude", Double.toString(loc.getLatitude())); Log.d("Longitude", Double.toString(loc.getLongitude())); } @Override public void onProviderDisabled(String provider) { // called when the GPS provider is turned off (user turning off the GPS on the phone) } @Override

GPS coordinates to pixel

为君一笑 提交于 2019-12-24 12:36:14
问题 I need to create image (polygon) from GPS coordinates. I have coordinates like this: (49.274633220,17.160206083),(49.276968797,17.162732143),(49.278188519,17.162391767),(49.279761626,17.161087954), ...... And I need to transform them to XY pixel points. Each pair of coordinates are vertex of created polygon. File with all coordinates: GPS.txt and how the created polygon should look like: Any idea how can I transform the coordinates? Thanks for all reply. 回答1: In all cases you need a

Getting location data on an Android device in certain intervals

五迷三道 提交于 2019-12-24 12:28:09
问题 I am trying to make an Android app which takes the location data in certain intervals e.g:- 5 sec, 1 min,etc. Here is my code :- public void onLocationChanged(Location loc) { // TODO Auto-generated method stub if(loc!=null) { //Required Interval tInterval =(minInterval*60*1000) + (secInterval)*1000 - 1000; //The app also supports interval mode RadioButton sel = (RadioButton) findViewById(mode.getCheckedRadioButtonId()); //Code for Manual Functionality if(sel.getText().equals(MANUAL_RADIO)) {