Hi All My dbt is that lets say I have the applications like Gallery and Calendar which want to use Sensor input as another input apart from touch i/p and key i/p and for this there is a utility say SensorGestureDetector(Example SensorGestureDetector: http://code.google.com/p/openintents/source/browse/trunk/ShoppingList/src/org/openintents/hardware/SensorGestureDetector.java?r=1106) , then which of the 2 ways u suggest me to use:
1) we use it the way we use GestureDetector, extending itsonSimpleGestureListener and implementig only the gestures specific to the application. This is simple and straight 2) we have a service to which application can bind and the service will call back when the getsure happens to the application which has been binded. So this service will listen to the sensor events in 1st place and implement the SensorGestureDetectors listeners which in turn would call the applications method and then the application can decide what to do on that specific gesture. Thanks and Regards, Learning_Android. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---