Looking at Android code, I've seen that SENSOR_PROXIMITY is managed as a sensor, but there is no current Android Framework managing events coming a proximity sensor. We can see for example that SENSOR_ACCELEROMETER is managed by class OrientationListener which will provide to Android applications information about any orientation change : public void onOrientationChanged(int orientation);
I suggest to do the same for the Proximity. Each time a proximity detection does occur, or if the object has moved a way, then this new class will provide to any Android application this proximity update : public void onProximityChanged(int proximity_distance); Name of this new class will be ProximityListener Does everyone agree to say this enhancement would be great since nothing yet is done in this way ? Note that I also raised this question there : http://code.google.com/p/android/issues/detail?id=2029 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---