问题
I understand that, given how vibration is achieved, the only way to vary the intensity would be a way to control the RPM of the motor. I can see the Vibrator Class does not allow for this, and yet, the VIBE app (see this video) appears to be achieving just that. On the video, at about 0:35, the "create your own vibe" is briefly shown. I tested it and, by god, it appears to be varying the intensity. Could it be that they are using the NDK for direct motor control?
回答1:
ViBe uses the Immersion Haptic SDK to control the device vibrations. Immersion themselves are using the Android NDK internally.
来源:https://stackoverflow.com/questions/12884286/varying-vibration-intensity-how-does-the-vibe-app-do-it