gps

How to give option for enable GPS

醉酒当歌 提交于 2019-12-12 06:49:25
问题 I want to show dialog box for turn on GPS when GPS is disable . See the image. When i click on YES then should be automatically turn on my GPS without going into setting. So , how can i enable GPS by select YES option ? 回答1: This is part of Google play service api since 7.0 called SettingsApi . Location settings - While the FusedLocationProviderApi combines multiple sensors to give you the optimal location, the accuracy of the location your app receives still depends greatly on the settings

How do I obtain the coordinates along GMaps directions?

久未见 提交于 2019-12-12 06:28:44
问题 I want to create an online map for a hiking trail, and I have been using my smartphone to collect coordinates from it. I have many questions regarding what's good practice when it comes to making such tracks, but for starters: it would look much neater if I could edit the readings so that they are right on top any roads in Google Maps. How can I achieve this? EDIT: I want to find the coordinates that will make a track along a road look exactly as if I'm using snapping/directions even when I'm

iPhone Simulator providing location results

筅森魡賤 提交于 2019-12-12 05:45:53
问题 I am using iOS SDK 4.2 and followed this tutorial: http://mobileorchard.com/hello-there-a-corelocation-tutorial/, and got some GPS logs happening on the console using both iPhone and iPad. Then I ran it on the simulator to test other features and the CoreLocation logs were hitting the locationManager:didFailWithError: method which is fair because the MacBookPro (OSX 10.6.6) has no GPS functionality... or so I thought. This morning I tested it on the iPad again at work instead of at home and

data from gps sometimes changed to unreadable format

梦想与她 提交于 2019-12-12 05:39:49
问题 I am getting data from avl system as you can see with this format : *HQ,4106016320,V1,090458,A,5257.4318,N,15840.4221,E,000.00,000,101115,FFFFFBFF,250,01,0,0,5# As you can see the data that i get from the gps is : As you can see in some lines the data is unreadable .why this problem happened? My server that gets the data is like this : using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using

Android service with always on GPS

浪尽此生 提交于 2019-12-12 05:39:32
问题 I've created an android app that is so far working quite well. It contains a local service which is responsible for getting the users location every couple of minutes and relaying that via UDP to a collection server which is in turned displayed on a web application map. The app needs to be constantly running unless the user explicitly signs out of the application. Currently, it seems the OS is shutting down the service and restarting it as needed. I can see this because normally it would

How to start service again when App Restarts and User already Granted Location access

丶灬走出姿态 提交于 2019-12-12 05:28:17
问题 I am able to implement a simple gpsTracker using a service that runs on background like this: public class MyService extends Service { private static final String TAG = "BOOMBOOMTESTGPS"; private LocationManager mLocationManager = null; private static final int LOCATION_INTERVAL = 1000; private static final float LOCATION_DISTANCE = 10f; private final IBinder mBinder = new LocalBinder(); private Intent intent; Context context; Location mLastLocation; public class LocalBinder extends Binder {

Android wearable GPS on moto 360 gen 1

ぃ、小莉子 提交于 2019-12-12 05:16:27
问题 I would like to develop a app on the moto 360 that gets the users current gps coordinates, is this possible even though they say it doesnt have built in gps connectivity? The reason I ask is it also says you can "track your watches location".. How would this be possible if it doesnt have gps? Does it just use the host device for this? 回答1: Is this possible even though they say it doesnt have built in gps connectivity? Yes it is possible, based on the document "Detecting Location on Android

MobileFirst 6.3 - Enabling location trigger in Background in Hybrid Applications for iOS environment

霸气de小男生 提交于 2019-12-12 04:56:57
问题 I'm using MobileFirst Platform 6.3, I'm trying to implement a Hybrid Application for Android and iOS, where I have created enter/exit location triggers in it, with "enableHighAccuracy=true", the application should always listen to the triggers when it is in the foreground and background. After adding the right permissions for both environments (Android, iOS), as stated in the KnowledgeCenter link: http://www-01.ibm.com/support/knowledgecenter/SSHS8R_6.3.0/com.ibm.worklight.dev.doc/dev/r_wl

CoreBluetooth: Can't find iPad

你。 提交于 2019-12-12 04:51:08
问题 I don't know how to use CoreBluetooth and I'm trying to find my iPad and get info of gps, accelerometer, gyroscope from that iPad (don't ask why). I know how to get gps location but I don't know how to get accelerometer and gyroscope too. Plz help me. App must be in swift. import UIKit import CoreBluetooth class ViewController: UIViewController, CBCentralManagerDelegate { @IBOutlet var initializing: UILabel! @IBOutlet var disconvering: UILabel! @IBOutlet var checkingState: UILabel! @IBOutlet

How to deal with background modes in apple review

早过忘川 提交于 2019-12-12 04:13:45
问题 I have upload my app to itunes yesterday and i receive a mail from the apple that is: From Apple 2. 5 Performance: Software Requirements Guideline 2.5.4 - Performance - Software Requirements We noticed that your app declares support for location in the UIBackgroundModes key in your Info.plist file but does not have any features that require persistent location. Specifically, your app uses location background mode for the sole purpose of tracking employees, which is not appropriate on the App