Android : Android: Can I Get Most Accurate Location From GPS?
Nov 22, 2010
I have used this code
locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,
500, 50, this);
to get my location using GPS. From what I understood, this code updates the GPS every 500milliseconds until the accuracy is about 50ms. Right? Now how do I know when it has achieved this accuracy? So that I can send the most accurate location in a text message.
View 1 Replies
Aug 2, 2010
I'm trying to get my current location and show it on a map. Class com.google.android.maps.MyLocationOverlay.MyLocationOverlay does most of the work for you. But it's coming back with a very coarse result that's off by a couple of clicks. I'm listening for onAccuracyChanged() but that never gets called.
How can I get a more accurate location, when using MyLocationOverlay ?
PS. manifest has
<application android:icon="@drawable/icon" android:label="@string/app_name"
android:debuggable="true">
<uses-library android:name="com.google.android.maps" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
View 1 Replies
View Related
May 30, 2010
I'm writing my first location based android app, but got confused about some of the GPS service api. Here are some questions I have:
1) To get my current location, I called requestLocationUpdates() with a listener in the onCreate() method of one activity. But what happens when another activity starts and the current activity goes invisible? Is the GPS location update going to stop? If so, how do I keep it on after the activity is switched?
2) how accurate is the Location.getSpeed()? How is it computed? Can it tell the difference between on bicycle and on foot?
3) not really a question about android. How to calculate the coordinates of a location, say, 100m away from my current location?
4) To stop the GPS, I only need to remove all the listeners that have been registered to locationmanager?
View 2 Replies
View Related
Jan 2, 2010
I recently posted this question on stackoverflow (http://tinyurl.com/ yzrofne), but maybe someone here can help me. 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 broadcast 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. For example, if I tell the location manager that I want an update every 5 minutes, it correctly fires the intent with location information from the GPS. However, the GPS only stays active for about 5 seconds, so it doesn't give much time for the location to reach a high accuracy (say, less than 10-20 meters). My question is how to make the GPS location provider stay active for each periodic request that comes from the LocationManager requestLocationUpdates. Does anyone know how to do this?
View 2 Replies
View Related
Sep 19, 2010
What should I have my GPS settings on to get best location? I think I changed them and now it shows me like 10 blocks from where I am?
View 8 Replies
View Related
Jan 2, 2010
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 anyone know how to do this?
View 3 Replies
View Related
Mar 11, 2010
I am trying to determine the most accurate location of a device, in the shortest time possible.I am storing the data as a geopoint, and have it displayed on a mapview.The last time I activated the GPS on my device and let it get a location lock, i was approx 80 miles from where I am now.I have a location manager setup and a location listener.If I do this, I get NULL. myLocOverlay = new MyLocationOverlay(this, mapView); GeoPoint test = myLocOverlay.getMyLocation(); but in the next couple of lines; myLocOverlay. enableMyLocation(); mapView.getOverlays().add(myLocOverlay);With this, the overlay on the map shows the current location. It is using the Network provider, but is also attempting to get a GPS fix (it can't as I am indoors and no where near the top floor).If I construct the geopoint like this Short of getting the geopoints from both GPS and Network and then comparing them, and disregarding the GPS result if it is say 1 mile out of the Network location - i'm a bit stuck. why doesn't getMyLocation() work, shouldnt that return the GeoPoint of what myLocOverlay is showing on the mapview?
View 2 Replies
View Related
Jan 22, 2010
I opened google maps and my location is not accurate at all. I understand that if I turn on gps options it becomes much more accurate, but it's a real battery eater. coming from a 2 year old samsung mysto on Helio network that ran google maps down to the meter for me (and only needed to be recharged every 4 days) it seems like this should work better.Am I missing something? That little mysto couldn't have been running active GPS pinging the whole time. What made it so much better at locating?
View 1 Replies
View Related
Jul 12, 2009
I'm totally new to the G1, coming from an iphone, but my gps when on (and can actually get a signal lock), seems to always have me on the grass or in the water if driving my any. Its rarely ever where I am. and im in a major city. Perhaps that could be why, but i always have clear view to the sky.
View 12 Replies
View Related
Nov 20, 2010
I've been looking for a battery widget to tell me my remaining charge state as a percentage, but so far all of them go in increments of 10% (i.e. 90% left, to 80%, to 70%, etc). Does anyone know of one that breaks it down a little more finely?
View 8 Replies
View Related
Mar 2, 2009
I need a recommendation from someone for the most accurate way of timing SoundPool sounds. I can't loop them because what's desired is not a loop but very accurate (to the ear at least) timing.
View 3 Replies
View Related
Dec 28, 2009
I hope this is the right section to post this, I have an HTC / G2 on a T-Mobile UK contract. I'm after a good weather forecast app that works well for the UK and Europe. I also use WeatherPro on my iPOD Touch (when I can link up to my home WiFi) and it is great - it picks up small towns, gives 5 day forecasts, 24 hour forecasts broken down into 3 hour time slots, shows satellite and radar, temperatures in 'F and 'C, windspeed and direction. It is very accurate too! I can't find it on the Android Market though.
View 5 Replies
View Related
May 4, 2010
I need to build compass for my application.
From reading the documentation it seems there are two reasonable ways of doing this:
Sensor.TYPE_ORIENTATION method: This is the easy way of doing it. The problem with this is it is not accurate. When I compare my reading with Snaptic Compass it is about 10-15 degress off which for my purposes is unacceptable.
Sensor.TYPE_ACCELEROMETER, Sensor.TYPE_MAGNETIC_FIELD and getRotationMatrix() in conjunction with remapCoordinateSystem() and getOrientation() method: The documentation says this "is usually more accurate". The problem is regardless of the delay I register with listener the compass goes crazy even when the device is stationary on flat surface.
View 2 Replies
View Related
Nov 30, 2009
Is anyone who is using 3G Watchdog or NetCounter actually receiving accurate stats compared to what Orange are showing on their OrangeWorld "Your Account" section?
I have been using my new HTC Hero for just over 2 weeks now and Orange are saying that I have used 422MB of data. This seems ridiculous to me as I only automatically check email once per hour, surf to the extent of anyone with such a new gadget, and spend every evening at home connected to WiFi from about 6pm onwards.
I phoned Orange one day last week and they advised that I had used 310MB up to that point, so I immediately downloaded 3G Watchdog and started it running. Since then, it says that I have used 36MB in the same period that Orange say I have used 112MB.
I also use NetCounter, but as I didn't reset it last week, I can't make any specific comparisons. However, on a daily basis it always agrees with 3G Watchdog to within a few KB.
I know I will need to phone Orange to sort this out, and I am certain that they will tell me that downloaded data counter apps cannot be trusted. I'm not sure how I can prove to them that their data readings for me are wrong.
View 1 Replies
View Related
Mar 5, 2013
Many times when I look at different weather apps, the current temp is always either the low or the high. Never seen this on a news or weather channel.
View 1 Replies
View Related
Apr 15, 2010
Can the xdpi and ydpi settings be relied upon to accurately represent the physical pixels in once inch of screen space? I need this to be accurate for some display code I'm writing. I realize the documentation says that this is the case, but I need to know if individual handsets get this right MOST OF THE TIME. I know I can alternately use "density" which will give me 120, 160, 240 steps of DPI, but an exact dpi would be much better.
View 2 Replies
View Related
Oct 26, 2010
I'm developing a mapping app using Eclipse 3.5.I'm setting the minimum update period with the LocationManager's requestLocationUpdates method, via a configuration activity. When I set the property I see in Logcat that the system process sets the value OK.When I actually send a new location from the DDMS emulator control and the location changes on the map view, I see that the system process then sets the minimum time to zero.Below is a capture of the system's log messages. You can see that I'm setting the period to 32 seconds, then 16, then, after I've sent a simulated location change the system sets it to zero.The map responds to location changes to location changes instantly even if they are sent only a couple of seconds apart.
View 1 Replies
View Related
Sep 17, 2010
In my application I have to fetch the current location. First it correctly fetches the location. But we are moving from the current location to some other location. It shows the previous address. It is not updating the location. My code is: locManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE); locListener = new MyLocationListener();locManager.requestLocationUpdates(LocationManager .GPS_PROVIDER ,0,0,locListener); location = locManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);if(location != null){latitude = location.getLatitude();longitude = location.getLongitude();} Please find the mistake and when i launch first time it is not working on second time itself it is working so check this thing also.
View 1 Replies
View Related
Jan 27, 2010
I have an application which uses the network as the location provider (rather than GPS eg.), however I can't seem to figure out how to send the emulator test coordinates. In DDMS I would usually send coordinates in the Emulator Control tab.Is there a place to simulate coordinates derived from the cell phone network provider?
View 6 Replies
View Related
Mar 4, 2010
I want to override the method enableMyLocation() in MyLocationOverlay class, in order to implement my own positioning algorithm to get latitude/longitude, and then plot them onto a MapView. I figured out how to do that, but now I'm stuck because I dont know what Canvas to pass when I call the method drawMyLocation().
Here is the MyLocationOverlay class
View 4 Replies
View Related
Jun 25, 2009
The way we are retrieving locations from our Android phones is to 1st get a Coarse Location followed by a Fine Location. This is for the case where the user may be inside a building initially and unable to track satellites. After we get our coarse location we transition to a fine location to track satellites. This method has been working fine for several months. We recently upgraded to 1.5 and our mapping application, to my recollection continued to work.For the past couple of days we have not been able to get a coarse location and we are receiving a status message in the onStatusChange callback of.We have re- installed previous versions our code that used 1.1 and we are receiving the same status message of .TEMPORARILY_UNAVAILABLE. Other than the obvious description of the constant, we can find no meaningful information.
View 2 Replies
View Related
Apr 2, 2010
Is there any way to specify the time intervals that the Location Manager broadcasts the current location?
I am using a method called startListening:
CODE:.....................
View 5 Replies
View Related
Aug 12, 2010
I've found bits and pieces of this answer scattered through other posts, but I wanted to record it here for others.How can I simply request the user's GPS and/or Network location and, if they haven't enabled the service, prompt them to do so?
View 1 Replies
View Related
Jun 6, 2010
I have a weird bug in my piano app. Sometimes keys (and thus notes) hang. I did a lot of debugging and narrowed it down to what looks like androids inaccuracy of motion event handling.Clearly it can be seen here that out of nowhere I suddenly have an ACTION_UP for another note. Shouldn't I definitely get a ACTION_MOVE first? As shown in the end of the log, it's definitely not an error in region detection, since the ACTION_UP event is clearly in the B4 region. Every onTouchEvent call is logged, so the log is accurate.
View 2 Replies
View Related
May 5, 2009
Is there any API method{[android.location " pack ] to get location name? did not find related method to to retrieve location name for given GeoPoint(lat,lon); I wanted to keep list of location names for particular GeoPoints (lat,Lon) in journey. can this be achievable in Android to calculate the name of location from lat .
View 4 Replies
View Related
Sep 21, 2010
New Incredible user just looking for some feedback, my battery stats are the following:
Uptime: 12:06
Awake time: 2:58
Battery use:
-Android system: 34%
-Cell standby 29%
-Phone Idle 22%
-Display 8%
-Voice calls 4%
-Maps 3%
I've been reading all other posts and their android system is significantly lower is there something draining my battery?
View 1 Replies
View Related
May 18, 2010
Even having this thing sync regularly its not accurate. Where is this weather coming from? I changed to weather bug and weather channel, both free apps are way better accuracy wise.
View 16 Replies
View Related
Sep 16, 2010
My girlfriend recently bought the Incredible.She says the voice dialer app isn't very accurate, is there a way to train it? I had her go into the voice recognizer settings but the option to train it is not there as it was on the D2.She also says it doesn't prompt her for confirmation and she can't find the setting to have it confirm before dialing. Is there an option she's missing?
View 12 Replies
View Related
Oct 9, 2010
I just got the update for GPS fix not to long ago, so I decided to test out the new Swype mic and here is what I found wrong with it. The Swype is by far less accurate then the Android keyboard mic. Even if you have cuss words programed into your Swype; when you say cuss words it will show as #### if even at all. All in all I suppose 2 might not be the biggest deal in the world, but 1 is a huge deal.
View 4 Replies
View Related
Jan 18, 2010
I have tried 2 GPS trackers and both were not accurate for measuring distance. I used My Tracks and Cardio Trainer. I really like Cardio Trainer but it adds 3 tenths of a mile for every mile. My Tracks was off as well. Anyway just wondering if anyone has had good luck with another application?
View 5 Replies
View Related