gps

Ripple geolocation settings being ignored by Cordova application

旧巷老猫 提交于 2019-12-25 03:41:03
问题 I'm using Visual Studio 2013 Update 4 and I've installed the Visual Studio for Cordova add-on (version 0.3.22015.1). I have created an Angular based app based on the Ionic SideMenu Starter Template for Cordova example. I have included the Cordova geolocation plugin in the config.xml file. Within this example I am obtaining the device's location using the following code: $scope.showPosition = function (position) { // ... } $scope.getLocation = function () { if (navigator.geolocation) {

lm.removeUpdate(ll); not releasing updates

邮差的信 提交于 2019-12-25 03:26:13
问题 I have been working for 2 days looking for this bug. I have searched stackoverflow and Android documentation with no luck. My onLocationChanged code has a counter in it that counts how many times it has been called and if I back arrow out of the activity screen on the phone and return, the counter will go up by 2 for each update. If I back arrowing out and update the GPS, the counter records that onLocationChanged is still getting called even though the screen is in the background and onPause

Can't affect values to a simple Double[] table which is always null

女生的网名这么多〃 提交于 2019-12-25 03:10:41
问题 I have a text file containing NMEA frames. I retrieve the latitude and the longitude of $GPGGA and $GPRMC frames. For this part, it was okay. Now, I'd like to convert the latitude and longitude into Decimal Degrees. The problem occur when I try to affect a values to Double[]coordinatestoconvert . This one is always null. It's like this error is really idiot, but I turn around all this morning for such a foolishness... Can someone help me please ? Here are the methods I am using : public

Empty OsmDroid Map? Where to custom the new map?

折月煮酒 提交于 2019-12-25 03:06:56
问题 Recently I tried to follow these steps: website. with the casual way of adding the map to be visible into the screen using this code: GPSTrackerActivity.java public class GPSTrackerActivity extends Activity { private SDCardHandler SDTool; private ToastSender ToastObject; private FrameLayout frm_lay; private MapView myOpenMapView; private MapController myMapController; @Override protected void onCreate(Bundle in) { super.onCreate(in); setContentView(R.layout.activity_gpstracker); SDTool = new

Android : Finding location using LAC and CID

余生颓废 提交于 2019-12-25 02:53:50
问题 I got the values of Local Area Code(LAC) and Cell ID(CID) in my application. But i couldn't find the exact location using these values. I don't know what i am missing. Someone help me in this m_manager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE); GsmCellLocation loc = (GsmCellLocation)m_manager.getCellLocation(); if (loc != null) { // out.format("Location "); Toast.makeText(getApplicationContext(), "Location",Toast.LENGTH_LONG).show(); if (loc.getCid() == -1) { // out

Android locationManager Null Pointer Exception? (how to pass the context?)

两盒软妹~` 提交于 2019-12-25 02:24:10
问题 I have a problem here and I cant get it to work... I want to get the latest gps positions but all i get is an null pointer exception. It works with the first class GPSActivity but not with the 2nd SmsReceiver. I read that this is maybe because I have to pass the Context to the 2nd class but I dont know how... please help! Here comes the code: GPSActivity.class : import android.app.Activity; import android.content.Context; import android.location.Location; import android.location

GPS app - Runs but shuts down on button click

我与影子孤独终老i 提交于 2019-12-25 02:14:18
问题 I'm making a GPS app where you can get the GPS coordinates by hitting a button. As stated in the title it shuts down when I click the button. I'm new to Android development and have got this far from my little knowledge of Java and following some Android tutorials. import android.app.Activity; import android.content.Context; import android.content.pm.ActivityInfo; import android.content.res.Configuration; import android.location.Location; import android.location.LocationListener; import

Measure GPS distance between two points without using almost any math? (accuracy is not needed at all)

岁酱吖の 提交于 2019-12-25 01:46:58
问题 I'm programming an application where I save GPS location (lat and long) into each user info. I need to search the nearest users, I can only search using a between() function provided by my database, this function only checks if a number is between a range min and max, it's a very limited tool. Can I use this to find near users? This is a pseudo-code example of what I could do, this example finds users that their lat and long values are not more or less than 2 comparing with the target user:

How Transport for London Website Works

微笑、不失礼 提交于 2019-12-25 01:32:34
问题 Here let me clarify , I have no intentions to peep in to or any evil intention towards tfls database and other related information. But , ofcourse Millions of users are greatly beniftted the way it serves the information. http://journeyplanner.tfl.gov.uk/ So , If we want to create some site like tfl, journeyplanner , what are the basic things we need to keep in mind. Which Architecture We should use? Can We create this website using ASP.NET(Should be able to)? Is TFL integrating it's website

need a BETTER way for current location

纵然是瞬间 提交于 2019-12-25 01:10:28
问题 Through nearly all problems/answers here and on the web, the best way for current location is as follows: if ( mLocationManager==null ) mLocationManager = (LocationManager) getSystemService(LOCATION_SERVICE); Location l; for ( String provider : mLocationManager.getAllProviders() ){ mLocationManager.requestLocationUpdates(provider, 1000, 1, locationListener); l = mLocationManager.getLastKnownLocation(provider); if ( isBetterLocation(l, currentBestLocation) ) currentBestLocation = l; } normally