[android-developers] onProviderEnabled / onProviderDisabled unexpected behavior

2008-12-21 Thread iAmACyborg
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.7

[android-developers] Re: requestLocationUpdates

2008-12-21 Thread iAmACyborg
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" wrote: > I'm using the following st

[android-developers] Is there a Service.onStop() equivalent?

2008-12-26 Thread iAmACyborg
When I call Context.stopService() is there any method I can override to run some code in the service object when this happens? The logical choice would be Service.onStop(); but there is no such method. --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] How to Check Key Status?

2009-02-14 Thread iAmACyborg
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 "