gps

getting the highest GPS update rate from the GPS Hardware in my Android

本秂侑毒 提交于 2019-12-21 03:52:38
问题 I got to program Android from other platforms I used with GPS . on the other platfroms I had access to the GPS HW (I had a low level GPS driver) and by that I could get GPS updates 5 times per second and even more Now I work with Samsung Galaxy S2 (which it is clear to me that its GPS is very strong and can supply several updates per second Currently when I set the GPS provider to supply updates in minimum distance and minimum time like this: mlocManager.requestLocationUpdates(

How to stop location manager?

为君一笑 提交于 2019-12-21 03:09:14
问题 Don't know why, but sometimes LocationManager is still working also after closing application. I call startGPS() in onCreate-Methode in one Activity (only one, let me call it StartActivity). protected void startGPS(){ try { lmanager = (LocationManager)getSystemService(Context.LOCATION_SERVICE); lmanager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, this); lmanager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, this); } catch(Exception e) { e.printStackTrace(); } }

Get gps location of a photo

社会主义新天地 提交于 2019-12-21 02:54:16
问题 I know how to get the current GPS location of a mobile phone. I also know how to save the GPS location to the photo when you take it. (Camera option Samsung galaxy s2). But how can I get the GPS location of that photo (later)? When I open the photo on the computer, I can see the GPS location data, but got no idea how to extract them later in android. So could someone put me in the good direction? To make question more clearly: How can I get the GPS location of a photo that is already taken?

How to get GPS data from Android phone?

折月煮酒 提交于 2019-12-20 20:00:08
问题 Is there a method to tether (USB wired) the GPS data from and Android phone to PC? I am using a GPSTether app currently that is based on the gpsd project. I am loooking for alternatives that give more control and is less buggy than that app. Also, is there another method of doing this without using any third party apps? I am working on a location aware software project and want to read the GPS data periodically. The GPSTether app does exactly that on a TCP port over telnet. 回答1: The ideal

How to get data from GPS and send to server and how save to database

时间秒杀一切 提交于 2019-12-20 17:28:10
问题 I designed a web page with PHP, the data can be read from database including lat, long, speed and it displays the data on a map. I have a MVT380 tracker that I can set IP and port on, so the data through GPRS can be sent to these IP and port. The problem is how to read the data and save it in database (is there any special hardware that can read the sent data to these IP and port and save it to database? or should we design a web page that can read the data through GET/POST protocol and save

location manager issue for ice cream sandwhich

大城市里の小女人 提交于 2019-12-20 14:16:43
问题 can anybody explain me what is this error ? I am getting only for android 4 + and not for below: E/AndroidRuntime(891): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.getaddress/com.example.getaddress.MainActivity}: java.lang.IllegalArgumentException: requested provider network doesn't exisit 回答1: It appears that the NETWORK_PROVIDER location provider is not accessible in Android 4+ emulators without Google APIs ( well actually I have not tested on all of them

location manager issue for ice cream sandwhich

我们两清 提交于 2019-12-20 14:15:57
问题 can anybody explain me what is this error ? I am getting only for android 4 + and not for below: E/AndroidRuntime(891): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.getaddress/com.example.getaddress.MainActivity}: java.lang.IllegalArgumentException: requested provider network doesn't exisit 回答1: It appears that the NETWORK_PROVIDER location provider is not accessible in Android 4+ emulators without Google APIs ( well actually I have not tested on all of them

how to use direction angle and speed to calculate next time's latitude and longitude

孤街醉人 提交于 2019-12-20 14:05:49
问题 I have know my current position({lat:x,lon:y}) and I know my speed and direction angle; How to predict next position at next time? 回答1: First, calculate the distance you will travel based on your current speed and your known time interval ("next time"): distance = speed * time Then you can use this formula to calculate your new position (lat2/lon2): lat2 =asin(sin(lat1)*cos(d)+cos(lat1)*sin(d)*cos(tc)) dlon=atan2(sin(tc)*sin(d)*cos(lat1),cos(d)-sin(lat1)*sin(lat2)) lon2=mod( lon1-dlon +pi,2

Create kml from csv in Python

牧云@^-^@ 提交于 2019-12-20 12:47:33
问题 I am new to Python. I am working on gps files. I need to convert a CSV file having all the gps data to kml file. Below is the code in python I am using : import csv #Input the file name. fname = raw_input("Enter file name WITHOUT extension: ") data = csv.reader(open(fname + '.csv'), delimiter = ',') #Skip the 1st header row. data.next() #Open the file to be written. f = open('csv2kml.kml', 'w') #Writing the kml file. f.write("<?xml version='1.0' encoding='UTF-8'?>\n") f.write("<kml xmlns=

Create kml from csv in Python

谁说我不能喝 提交于 2019-12-20 12:46:11
问题 I am new to Python. I am working on gps files. I need to convert a CSV file having all the gps data to kml file. Below is the code in python I am using : import csv #Input the file name. fname = raw_input("Enter file name WITHOUT extension: ") data = csv.reader(open(fname + '.csv'), delimiter = ',') #Skip the 1st header row. data.next() #Open the file to be written. f = open('csv2kml.kml', 'w') #Writing the kml file. f.write("<?xml version='1.0' encoding='UTF-8'?>\n") f.write("<kml xmlns=