Thanks Peli,

Regarding the usage point. Lets say I develop my own
SensorGestureDetector and place it in hardware folder of frameworks/
base and then my applications want to use it. Then how should my
application use it, do u suggest the way GestureDetector is been used
I mean u create a listener and implement the callbacks like onShake or
whatever? or should we have 1 service/activity always listening to
sensor data then calling sensorGestureDetector and getting the sensor
getsure and then notifying the application accordingly. Which is a
better way? which is a optimal and neater approach?

Thanks and Regards,
Learning_Android.

On Mar 18, 3:08 pm, Peli <[email protected]> wrote:
> 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.
>
> Peliwww.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
-~----------~----~----~----~------~----~------~--~---

Reply via email to