[android-developers] How to Check Key Status?
Hi, I'm killing myself here, any help would be appreciated. Is there any way to poll the state of a given hardware key? I'm not talking about using an event. Matthew --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] onProviderEnabled / onProviderDisabled unexpected behavior
When enabling or disabling a provider in settings; it seems to trigger a disable event for all providers, then an enable event for any providers that are still checked. Is this the intended behavior? For example, if network and gps are enabled, and I disable network - I get this: 12-20 22:12:42.723: DEBUG/GPSgoTo(673): Provider disabled: gps 12-20 22:12:44.273: DEBUG/GPSgoTo(673): Provider disabled: network 12-20 22:12:44.533: DEBUG/GPSgoTo(673): Provider enabled: gps 12-20 22:12:49.563: DEBUG/GPSgoTo(673): Best Provider: gps I use a message handler to delay figuring out what provider to use for 5 seconds so my app doesn't hang up with all the changes... but shouldn't this just trigger a single onProviderDisabled(network)? Does anyone else experience this problem? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: requestLocationUpdates
You'll have to store the last time and place the update was received for. Then when you get a new update; compare it to the saved values. If the difference is = your minimum, update the stored values and pass the update on. On Nov 10, 12:09 pm, dave.marsden dave.mars...@dragonfly- services.co.uk wrote: I'm using the following statement to request updates on my G1s position : lm.requestLocationUpdates( LocationManager.GPS_PROVIDER, 3, 30, locationListener); Which I reckon shuold give me an update every 30sec when the device has moved more than 30 metres. However the device seems to get updates much more frequently. Anybody any ideas? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---