Didn't we just have this discussion on another list?

1. This class is not part of the platform at this point, it is stuff people
are working on separate and you can just use if you want.
2. Statically link the class into your platform and use it, as has already
been suggested.

On Thu, Mar 19, 2009 at 2:32 AM, Learning_Android <
nidhiagarwal.l...@gmail.com> wrote:

>
> 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.
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to