gps

Switch off GPS programmatically

时光怂恿深爱的人放手 提交于 2019-12-19 19:28:34
问题 What i have: Currently my app is giving location through gps. what i want: Gps to turn off automatically after i exit from the application. Because it keeps on telling me the location time and again that looks odd and also gps consume a lot battery. 回答1: Looking at above comment thread it seems its possible to turn OFF GPS programatically (But seeing only 12 Upvotes) But if you switch OFF GPS from your application programatically, what if other applications use GPS Service ? The solution

Sync Time for Recording Data on Multiple Android Devices

无人久伴 提交于 2019-12-19 17:14:10
问题 This question may be slightly long-winded, but is open for many suggestions. Problem Statement: We have several API level 8 (Android 2.2) MyTouch devices that we will be using for recording acceleration data at an amusement park, namely on a roller coaster. We also have a visualization feature that allows us to plot and view the accelerometer points as a function of time that they were recorded at. Here is where we have a dilemma! The system times on the Android devices aren't all the same,

How can I get latitude and longitude of the current location in Blackberry?

こ雲淡風輕ζ 提交于 2019-12-19 11:20:14
问题 I am developing an app which has GPS functionality. How can I get latitude and longitude of the current location. 回答1: I found a solution by myself. The following code works fine for me: package mypackage; import javax.microedition.location.Location; import javax.microedition.location.LocationException; import javax.microedition.location.LocationListener; import javax.microedition.location.LocationProvider; import net.rim.device.api.ui.UiApplication; import net.rim.device.api.ui.component

How to track distance via GPS on Android?

风流意气都作罢 提交于 2019-12-19 11:05:54
问题 How would I go about tracking the distance a user travels? I don't necessarily care about storing waypoints, although that may be necessary to calculate distance anyway. So far, I am creating a LocationManager and regsitering an onLocationChanged listener, and then calculating the raw distance between two points when the listener fires. The problem here is that if I leave the app sit still on a desk for 10, 15 minutes, it will say I have traveled .5 miles. How should I go about checking for

Send GPS location to iOS device via bluetooch

六眼飞鱼酱① 提交于 2019-12-19 10:52:38
问题 We are looking for a way to send GPS location to iPhone or iPad through bluetooth. The benefits of doing so is that an external GPS device could produce more accurate location than the build-in GPS device in iOS. For our testing purposes, it would also be nice to be able to produce GPS manually by QAs. We are pretty sure this is possible but we don't know how. We heard about this kind of external GPS device from one of our customers. Simple googling we found this one this device, which does

Sensor reading in web worker

╄→гoц情女王★ 提交于 2019-12-19 10:17:30
问题 It seems that we can not get sensor data in the web workers. I wonder the reason behind it. The use case is that I am thinking about getting geolocation data in the worker thread and only send the processed version to the main thread. For GPS, this post says it is not supported in the worker thread (no reason is given). And I double checked it, navigator.geolocation is not supported in web workers. For accelerator and gyroscope, we have DeviceOrientationEvent and DeviceMotionEvent. But we

I keep getting an inaccurate location in Android

南楼画角 提交于 2019-12-19 09:07:18
问题 my app records the gps location on a button click; however when I do it says I'm about three blocks away and is extremely inaccurate. Can you take a look at my code to see how I can improve it? Thanks @Override protected Void doInBackground(Void... arg0) { SharedPreferences prefs = getSharedPreferences("Settings", 0); final String id = prefs.getString("ID", ""); DefaultHttpClient httpclient = new DefaultHttpClient(); HttpPost httpost = new HttpPost( "http://iphone-radar.com/gps/gps_locations"

iOS detect mock locations

偶尔善良 提交于 2019-12-19 06:34:55
问题 Currently I'm working on an App which geolocation capabilities are its most important feature. Actually we're very concerned about getting GPS values mocked up. I've read a lot of comments regarding mocking locations on both iOS and Android and most of them tend to explain an unjailbroken iOS device can't mock locations, but the truth is I've created another project, with a GPX file to mock up location on that project and when executed, the entire system believes I'm in another city. All my

iOS detect mock locations

别等时光非礼了梦想. 提交于 2019-12-19 06:34:02
问题 Currently I'm working on an App which geolocation capabilities are its most important feature. Actually we're very concerned about getting GPS values mocked up. I've read a lot of comments regarding mocking locations on both iOS and Android and most of them tend to explain an unjailbroken iOS device can't mock locations, but the truth is I've created another project, with a GPX file to mock up location on that project and when executed, the entire system believes I'm in another city. All my

iOS detect mock locations

我怕爱的太早我们不能终老 提交于 2019-12-19 06:33:26
问题 Currently I'm working on an App which geolocation capabilities are its most important feature. Actually we're very concerned about getting GPS values mocked up. I've read a lot of comments regarding mocking locations on both iOS and Android and most of them tend to explain an unjailbroken iOS device can't mock locations, but the truth is I've created another project, with a GPX file to mock up location on that project and when executed, the entire system believes I'm in another city. All my