Vibrate settings on Android 2.2

后端 未结 2 917
我在风中等你
我在风中等你 2020-12-28 11:27

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

2条回答
  •  悲&欢浪女
    2020-12-28 11:49

    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.

提交回复
热议问题