Hi, First of all, the SensorGestureDetector you refer to is in its alpha state, and so far an experimental feature of OpenIntents. In the long run of course it would be nice if it could make its way into the Android Framework.
Indeed I have designed it to be as close to GestureDetector as possible. As you have noticed, the events are different, because the underlying events delivered also differ. As for how to use it, I expect the classes to still change a lot, so if you need something now, it is probably better to copy & paste what you need into your project (!Note: Apache license requires you to properly attribute though if you use some code!), until we can provide something more stable. Peli www.openintents.org On Mar 18, 10:43 am, Learning_Android <[email protected]> wrote: > I had a doubt regarding the SensorGestureDetector that I saw > onhttp://code.google.com/p/openintents/source/browse/#svn/trunk/SensorG... > > Firstly, is the general design of SensorGestureDetector same as > GestureDetector? I find them both very similar except that > SensorGestureDetector would use SensorEvents and GestureDetector would > use MotionEvent/TouchEvents > > Secondly, currently I see applications like Calculator,Calendar and > Gallery are using GestureDetector if tomorrow I would like to handle > sensor events also in these applications for same functionality that > are currently been achieved using normal TouchEvents, should that > happen appn specific or should we have a separate > SensorGestureDetectorActivity or Service which would call current > active application or an application which have registered with this > Activity /Service on a sensor getsure that it has subscribed for? > > Thanks in advance! > Learning_Android --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "android-framework" 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-framework?hl=en -~----------~----~----~----~------~----~------~--~---
