You might also want to try the Universal Haptic Layer provided by
Immersion.
Simple to use, and gives you a large number of haptic effects to pick
from.
http://www2.immersion.com/developers/index.php?option=com_contentview=categorylayout=blogid=119Itemid=592
Eric
--
You received this
Thanks Lee and Dianne.
That works fine, although the vibrate is noticeably lower than that when you
type using Hero keyboard. Still, it works fine.
I was debating about leaving it in the OnClickListener(), as that sort of
seemed more appropriate, it would be a notification that you had clicked
On Tue, Sep 29, 2009 at 4:49 AM, James Webster jpbwebs...@gmail.com wrote:
That works fine, although the vibrate is noticeably lower than that when
you type using Hero keyboard. Still, it works fine.
It is probably using the vibrator API directly with its own vibration
pattern.
I was
Got it, thanks Dianne, I will look into that API.
2009/9/30 Dianne Hackborn hack...@android.com
If you are not giving feedback for a long press, I would not use it, since
that is currently the only kind of feedback it supports. Instead just use
the vibration API directly. This is what the
This one works for me:
performHapticFeedback( HapticFeedbackConstants.LONG_PRESS,
HapticFeedbackConstants.FLAG_IGNORE_GLOBAL_SETTING );
I remember having trouble getting other things to work.
Fortunately I only use Haptic Feedback with a long press, otherwise
the Code Cops might come calling.
Currently there is only a definition for long press, so this API isn't all
that useful. (This is also why the preference is hidden away in SpareParts,
it's not really ready for prime time.) If you are giving feedback for a
long press, then you may want to use it... but if you also feel the need
6 matches
Mail list logo