i'm trying find way disable , enable keyboard sound , vibration when tapping keys. i've searched on stack overflow , other android forums didn't found result.
i've tried audiomanager
enable vibrate mode, want activate vibrate mode , sound on keyboard.
audiomanager.setringermode(audiomanager.ringer_mode_vibrate); audiomanager.setvibratesetting(audiomanager.vibrate_type_ringer, audiomanager.vibrate_setting_on);
is there way how change android.provider.settings
keyboard sound , vibration ?
as per comments:
i'm talking default keyboard in android , want have ability disable / enable keyboard sound , vibration when user tap key in keyboard,( in settings of keyboard )
&
i'm talking soft keyboard, in samsung galaxy s2 , htc 1 ...etc
afaik, can not accomplish each input method keeps sound/vibration preference values internally. see example android (aosp) ime (as of writing lines 30~39):
<checkboxpreference android:key="vibrate_on" android:title="@string/vibrate_on_keypress" android:defaultvalue="@bool/config_default_vibration_enabled" android:persistent="true" /> <checkboxpreference android:key="sound_on" android:title="@string/sound_on_keypress" android:defaultvalue="@bool/config_default_sound_enabled" android:persistent="true" />
as can see stores vibrate/sound values in shared preference. applies of ime in market. hence, can not control vibrate/sound effect ime's single point.
Comments
Post a Comment