gps

How to retrieve the GPS location via SMS

∥☆過路亽.° 提交于 2019-11-30 15:26:06
I made an Application that gives me the location of my Android phone. Now I want to make a method that helps me to retrieve the GPS location of my phone (latitude longitude or the address if possible) with an SMS. Exemple: phone number 558899. I send an Sms with "get location" to 558899 an get a message back with the coordinates. this may help: "Capture" incoming SMS: http://www.codemobiles.com/forum/viewtopic.php?p=95 Send SMS: http://www.anddev.org/how_to_send_sms-t552.html Edit: Dead link. I don't remember what exactly was in it, just like Google's cache and Internet Wayback Machine.

Redirect to location settings using cordova in android

人盡茶涼 提交于 2019-11-30 14:46:24
Here is the requirements what i am trying to implement in my cordova android application When user enters the home page check to see if the gps is enabled or not. If not enabled i want to point the user to turn on the location settings. first part is made easily with GPS detector plugin and second part is implemented using the web intent plugin.But its not working as i expected. if(!gps){ //gps is disabled try to show the location setting using webintent plugin window.plugins.webintent.startActivity( { action: window.plugins.webintent.ACTION_LOCATION_SOURCE_SETTINGS, }, function() {}, function

Getting Altitude(height from sea level) of my location in iphone SDK

僤鯓⒐⒋嵵緔 提交于 2019-11-30 14:25:21
问题 I am trying to get Altitude of my location in my application. But every time I try altitude property of CLLocation object I am getting 0.00 as result. I googled for my query and I got a similar question here and here. This link is saying that if I access CLLocation with wifi or cell tower it will be null. Even if I try to set desireAccuracy to best than even it don't make sure that app will use GPS. It is also saying that if I am indoor that I won't be able to access GPS. I many cases it its

Get the shortest distance from a point

孤街浪徒 提交于 2019-11-30 14:23:36
问题 I have this table in sqlite Locations ID Lat ( latitude) Lon ( longitude) Type Name City I have for example 100 records what I need is to get (using my own coordinates) the nearest point in my table. What I did is to get the shortest distance between my current point and each one in the table, and return the shortest one, but I am searching for a better solution Thanks 回答1: A possible solution is to use a grid for the whole map your are interested in and pre-assign points to a particular row

iPhone: get nearby places / places list

亡梦爱人 提交于 2019-11-30 14:21:40
问题 I've been wondering, what list does facebook places use? Is it foursquare's one? And if so, how does it work? Can I connect to foursquare's API and get nearby places with coordinates or something like that? Thanks a lot! 回答1: Here is simple way to find out places near by given LAT and LONG as well as with specific word like-- Hotel,Bar etc: http://maps.google.com/maps?f=q&sll=LATANDLONG&radius=500&q=SEARCHWORD&output=kml It returns KML file ,and user can parse just like XML parsing. 回答2: Here

How to get the current location of iPhone through code?

。_饼干妹妹 提交于 2019-11-30 13:31:59
问题 How do you get the current location of iPhone through code? I need to track the location using GPS. 回答1: You're looking for the "CoreLocation" API. Here's a tutorial 回答2: There is (as always for core functionality) comprehensive documentation on the developer site and you may find this example useful; The key points to remember are; 1) Once you start receiving location updates, they arrive asynchronously and you need to respond to them as and when they come in. Check the accuracy and

Change Location Mode to High Accuracy Programmatically Android

♀尐吖头ヾ 提交于 2019-11-30 12:30:50
问题 Is it possible to get the information on the location mode which the user has selected among the three modes under the location settings options i.e 1.Hight Accuracy 2.Battery Saving 3.GPS Only I want to programmatically check if user has selected High Accuracy mode if not then enable it automatically. Is it possible ? Please advice. 回答1: It is possible to get the device's current location mode since API level 19 (Kitkat) : public int getLocationMode(Context context) { return Settings.Secure

How to get speed in android app using Location or accelerometer or some other way

丶灬走出姿态 提交于 2019-11-30 11:41:19
问题 I am working on app and try to get the speed and distance travelled by the user. I have used Google Play services location class to get the speed but it always returns me 0.0 value and not at all reliable. I wan accurate speed and distance travelled at real time. I have installed GPS Speedometer app on my device and its so perfect that even if i am walking then it gives me the speed. I want to get the same thing. I am confused in how to get speed, using location or using accelerometer or is

Finding Location : Google Play Location Service or Android platform location APIs

霸气de小男生 提交于 2019-11-30 11:11:14
问题 i am trying to get the users location for my new navigation app. i want to check the users location frequently and it has to be accurate . I use the following code from sample to get the location . public class MainActivity extends Activity implements LocationListener { private LocationManager locationManager; private String provider; private TextView a; private TextView b; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout

android: how to fix gps with mock(fake) coordinates?

送分小仙女□ 提交于 2019-11-30 11:10:45
问题 I'm trying to fix GPS programmatically when the GPS signal is not available. I want to do this in order to provide mock coordinates to other apps like google maps and others. I tried to use GPS_PROVIDER and NETWORK_PROVIDER but only with the latter I can get a new location valid for google maps. But this works only the first tima and if I want to re-fix more mock locations google maps doesn't see any change... why?? I have to do a service for what I want to do? public void setLocation(double