There are many threads about vibration and apps controlling vibration, here and in other places, but I still can't find the answer I want.
Summary of question: how do I write an app which lets me, in just one or two clicks, change the setting of home->settings->sound->vibrate->[options]?
Question in full:
I have a Samsung Galaxy Ace (GT-S5830i, rooted, stock rom, Android v 2.3.6). Before that I had an old Nokia phone. The Nokia phone could do something that, as far as I know, the Android phone can't do! I want to make my Android phone do this thing.
With my Nokia phone, I could, with two clicks, change the "mode" of the phone. I would use three "modes" on a daily basis. These modes are the following:
1) "normal" mode: rings and vibrates when a call comes through; makes a sound and vibrates when a text comes through.
2) "silent" mode (because I'm asleep) never rings; never vibrates, for call or text.
3) "vibrate" mode (because I'm in a meeting/class) never rings, no sound for text, but it vibrates for calls **and vibrates for texts**.
***
On my Android, I can easily switch the *ringer* between these two modes (e.g. using slider widget). But I have to keep changing my vibrate options manually with home->settings->sounds->vibrate->[choose option] and I'm sick of doing this.
How do I access this option from within an android programming environment? Assume that I know how to write an app/widget; my question is how to change the variable corresponding to home->settings->sounds->vibrate->[option].
wccanard
Summary of question: how do I write an app which lets me, in just one or two clicks, change the setting of home->settings->sound->vibrate->[options]?
Question in full:
I have a Samsung Galaxy Ace (GT-S5830i, rooted, stock rom, Android v 2.3.6). Before that I had an old Nokia phone. The Nokia phone could do something that, as far as I know, the Android phone can't do! I want to make my Android phone do this thing.
With my Nokia phone, I could, with two clicks, change the "mode" of the phone. I would use three "modes" on a daily basis. These modes are the following:
1) "normal" mode: rings and vibrates when a call comes through; makes a sound and vibrates when a text comes through.
2) "silent" mode (because I'm asleep) never rings; never vibrates, for call or text.
3) "vibrate" mode (because I'm in a meeting/class) never rings, no sound for text, but it vibrates for calls **and vibrates for texts**.
***
On my Android, I can easily switch the *ringer* between these two modes (e.g. using slider widget). But I have to keep changing my vibrate options manually with home->settings->sounds->vibrate->[choose option] and I'm sick of doing this.
How do I access this option from within an android programming environment? Assume that I know how to write an app/widget; my question is how to change the variable corresponding to home->settings->sounds->vibrate->[option].
wccanard