gps

Use the Android Default GPS ON-OFF dialog in My application

蹲街弑〆低调 提交于 2019-12-03 16:25:16
问题 In Our application we want to integrate the android Default GPS Dialog. The same dialog that appears when the GPS is OFF and we press of my location button in google map apps. Have also attached the image of the dialog which I want to integrate. Clicking on "No" option will close the dialog. Clicking on "Yes" option will Activate the GPS of device directly. Dialog the appears for OLA app Below (ANDROID L): Dialog the appears for OLA app Below (ANDROID KIT_KAT): Dialog the appears for Google

Android: How to keep GPS active until more accurate location is provided?

心不动则不痛 提交于 2019-12-03 16:07:41
I am using the location manager's requestLocationUpdates() method to receive an intent to my broadcast receiver periodically. The system is correctly firing the intent to my receiver, and I have been able to use it correctly. The only problem is that the GPS location provider only stays active for a few seconds after the initial location acquisition, and I need it to stay on a little longer so that the location estimates are more accurate. My question is how to make the GPS location provider stay active for each periodic request that comes from the LocationManager requestLocationUpdates. Does

Android Location return null after Enabling GPS in dialog

冷暖自知 提交于 2019-12-03 16:03:43
When I enter a screen, I check for if GPS is turned on, if not, the dialog to enable GPS is shown. When user clicks Yes, onActivityResult -> GPS is turned on and I try to get the location but this always returns null When I enter the screen with GPS already on, location is retrieved properly. I have been struggling with this for few days now and can't seem to find any resources. UserLocationUtilities.java public class UserLocationUtilities implements GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener, LocationListener{ GoogleApiClient googleApiClient; Activity

WGS84 Geoid Height Altitude Offset for external GPS data on IOS

五迷三道 提交于 2019-12-03 15:47:15
For an application I'm writing we are interfacing IOS devices with an external sensor which outputs GPS data over a local wifi network. This data comes across in a "raw" format with respect to altitude. In general all GPS altitude needs to have a correction factor applied related to the WGS84 geoid height based on the current location. For example, in the following Geo Control Point ( http://www.ngs.noaa.gov/cgi-bin/ds_mark.prl?PidBox=HV9830 ) which resides at Lat 38 56 36.77159 and a Lon 077 01 08.34929 HV9830* NAD 83(2011) POSITION- 38 56 36.77159(N) 077 01 08.34929(W) ADJUSTED HV9830* NAD

Android GPS data obtaining and filtering, how it improve location info

☆樱花仙子☆ 提交于 2019-12-03 15:13:46
I'm starting to deal with gps data on Android 2.1 (HTC Hero) and look around on topics about Kalman filter and least squares fit to location data. While receiving and logging GPS data using phone I've found small dispersion if staying on position, but coordinates are pretty accurate when moving. Here comes the question: - Do getLatitude() and getLongitude() functions provide "raw" coordinates, or data was pre-filtered by android (while position is fixed or during movement)? I'm curious if anyone tested Kalman on android and it's possible to say that you have certain improvements with gps. In

Android - plotting gps coordinate on custom map

巧了我就是萌 提交于 2019-12-03 15:08:22
I have an activity in my app where there are images I use as maps. If the image is "grid aligned" to google maps then when I use the top left and bottom right corners of the map I get from googlemaps online then I can turn the users gps into an x and y on screen. However if the map is not "grid aligned" and is at an angle than the values my math returns draws the users position off screen. Obviously I am missing the part on how to handle the angle of the map so if anyone could shed some light on how to do that it would be super helpfull. I know I would have to figure out the angle in radians

How do I find nearby app users in android?

谁说我不能喝 提交于 2019-12-03 14:44:07
I am making an application which needs to be able to find people nearby, who are users of my app. I looked at many answers of precedent similar questions, and it seems I have no choice but to keep uploading a user's current location to the server, and get nearby users' list when necessary. Then my question is, 1. To get the nearby list, there should be some algorithm or function which calculates the distance. Then doesn't that mean I have to get all distances between my location and the rest of the app users? So the server returns certain number of users who have the least distance results. If

phonegap: how to check if gps is enabled

穿精又带淫゛_ 提交于 2019-12-03 13:59:19
问题 I want to show an alert saying that "Please turn on your GPS". How can I get GPS status using phonegap? I have used following code but I don't get any alert message if GPS is turned off. Instead nothing happens. <!DOCTYPE html> <html> <head> <title>Device Properties Example</title> <script type="text/javascript" charset="utf-8" src="cordova.js"></script> <script type="text/javascript" charset="utf-8"> // Wait for device API libraries to load // document.addEventListener("deviceready",

Send current location through an SMS

佐手、 提交于 2019-12-03 13:53:01
问题 I'm trying to get my app to be able to send its current GPS location through an SMS to a preentered phone number. I have my code right now that only brings up an SMS window inside the app in which I can edit in the receiving number and a body. What I am wondering is how I get the current location in this body so it can be sent through the SMS? Can't figure it out. This is how my code looks right now regarding the SMS function. -(IBAction) sendInAppSMS:(id) sender {

Turn off GPS icon when LocationListener is sleeping

橙三吉。 提交于 2019-12-03 13:49:00
问题 I am struggling a bit with the LocationListener in Android. I want to make an app that will get the current GPS location, and then afterwards sleep for a long time. A day or more. In this period of time i want the GPS notification icon to not show. What i have now, is in the onLocationChanged a Thread.sleep(x) but this will keep the icon on in the sleep period. How can i do this, and is there a better approach than to use Thread.sleep? Thanks in advance 回答1: You have to turn off the