Source is at: http://code.google.com/p/trivial-android-apps/source/browse/gpswatch/src/com/apptude/android/trivial/gpswatch/GpsWatch.java
Please note that this is "play-pen" code. -- RichardC On Oct 21, 1:24 pm, RichardC <[email protected]> wrote: > Yes, I get frequent updates. My test program implements the > interfaces GpsStatus.Listener and LocationListener on my Activity > class. > > In onCreate > locationManager = (LocationManager) getSystemService > (LOCATION_SERVICE); > > In onResume() I do > locationManager.addGpsStatusListener(this); > locationManager.requestLocationUpdates > (LocationManager.GPS_PROVIDER, 1000, 0.0f, this); > > and in onPause() I do > locationManager.removeGpsStatusListener(this); > locationManager.removeUpdates(this); > > My onGpsStatusChanged method in my Activity class contains: > gpsStatus = locationManager.getGpsStatus(gpsStatus); > > My onLocationChanged method in my Activity class contains: > myLocation = location; > > I then do "stuff" with the results. > > You probably don't need the GpsStatus information, I am using it to > plot the position of the satellites and show their signal strengths > graphically in a custom view. > > -- > RichardC > > On Oct 21, 12:35 pm, "[email protected]" > > <[email protected]> wrote: > > Thanks for the info. > > > Creating your own GPS calculations doesnt seem to be possible with the > > iPhone. Because of those API restrictions. > > > Did I interpret your answer correctly, that it is possible to create a > > more precise GPS tool on the Android, because you can define your own > > parameter/rules? > > E.g. update every 1-2 seconds and throwing away any fixes that are off > > by, lets say, 50m? Cause the app should only be used within speeds > > from 0-30km/h. > > > /Jan > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

