Hmm.. ok.  I wonder if it's something crufty in my code.. sounds like
my call to vibrate may be looping somewhere.

I'll assume I've done something wrong.

Thanks for the info.

On Aug 22, 7:36 pm, YuviDroid <[email protected]> wrote:
> Hey,
>
> I just tried on my HTC Desire (with Android 2.2) and vibrate() works as
> expected...(i.e. the parameter is milliseconds).
>
>
>
>
>
> On Sun, Aug 22, 2010 at 11:16 AM, Jason <[email protected]> wrote:
> > Hi folks,
>
> > I'm trying to get a simple vibration working and according to the api
> > docs (http://developer.android.com/reference/android/os/Vibrator.html)
> > all I need to use is this:
>
> > public void vibrate (long milliseconds)
>
> > Turn the vibrator on.
> > Parameters
> > milliseconds    How long to vibrate for.
>
> > However the behavior I am seeing is not what is described.  Instead of
> > a number of milliseconds, it seems this parameter translates into an
> > "intensity"??
>
> > I tried:
>
> > vibrator.vibrate(200);
>
> > and I got a sustained vibration which didn't stop until I exited my
> > app.  Initially I thought perhaps the api docs were wrong and the
> > parameter was seconds, not milliseconds, so I tried:
>
> > vibrator.vibrate(2);
>
> > This time I got the same behavior, i.e. continuous vibration, but the
> > vibration was very gentle.. almost in-perceptible.  This leads me to
> > conclude that the parameter translates into an intensity, not a time.
>
> > Is it possible that this is a "feature" of the particular device?  In
> > my case HTC Desire.
>
> > I'm running 2.1 as my crappy telco hasn't distributed an update to
> > 2.2, but it worries me that this behavior may differ from device to
> > device.
>
> > Anyone else had any experience with this?
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<android-developers%2Bunsubs 
> > [email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> YuviDroid
> Check out Launch-X <http://android.yuvalsharon.net/launchx.php> (a widget to
> quickly access your favorite apps and contacts!)http://android.yuvalsharon.net

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en

Reply via email to