本文介绍了改变振动设置在果冻豆,Android的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在寻找如何改变果冻豆的震动设置。我发现所有的pre-JB震动设置已经去precated,却看不到任何新的AudioManager。任何地方[更改震动设置] code。还有,我想知道如何玩设置响铃时振动。
I am looking for how we change the vibrate settings in Jelly Bean. I found that all the pre-JB vibrate settings have been deprecated, but don't see any new AudioManager.[change the vibrate settings] code anywhere. There is a setting "Vibrate when ringing" which I would like to know how to play with.
感谢您的帮助。
推荐答案
在android4.1,你可以用它来控制振动与放大器;振铃
In android4.1 you can use this to control "vibrate & ringing"
Settings.System.putInt(mContentResolver, Settings.System.VIBRATE_WHEN_RINGING, enable ? 1 : 0);
这篇关于改变振动设置在果冻豆,Android的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!