I\'m making a vibrate toggling widget (in fact, its first version is already in the Market) but I\'m having some problems with the vibrate settings of Android 2.2.
U
Ok, I think I finally fixed it.
I looked at the source code of the com.android.settings.Settings class and copied part of the methods that enable and disable vibrate:
https://android.googlesource.com/platform/packages/apps/Settings/+/master/src/com/android/settings/SoundSettings.java
Thank you anyway magaio, you pointed me in the right direction.