vibration

Android: Ringer mode changed to silent doesn't stop the phone vibrating

I'm trying to change the ringer mode of the phone to RINGER_MODE_SILENT when a call is incoming by using the following lines of code. AudioManager am = (AudioManager) this.getSystemService(Context.AUDIO_SERVICE); am.setRingerMode(AudioManager.RINGER_MODE_SILENT); While the phone stops ringing it continue to vibrate although the docume...

android ringing vibration activate/deactivate

hi friends, I have a small problem... i tried searching high and low but couldnt find a way i can activate and deactivate the vibration at the time of incoming calls... The option in the menu --> Settings --> Sounds & Display mentions - PHONE VIBRATE - vibrate phone for incoming calls... i want to activate and deactivate it through co...

iPhone Dev: short sound and vibration at the same time

Hello there, is there any way to play a short sound and let the phone vibrate at the same time? I found something about AudioQueing, but I'm a newbie and cant wrap my head around that whole process of AudioQueing. Kind regards from Germany ...

How to vibrate iPhone while playing music

I am trying to vibrate the iPhone using AudioServicesPlaySystemSound(kSystemSoundID_Vibrate) while playing iPod music with the MediaPlayer framework, but I can't get the vibrate to work while the music is playing. I can play a sound at the same time as the iPod music using the following code, but the vibrate doesn't seem to work. [music...

Using accelerometer data to determine if something strikes the device

Hi all, I need some help with this problem. I want to detect when an object hits a device (which has an accelerometer built in) that's resting on a table. The hit/strike, say by a ball, causes a fast spike in the Z values and if the hit is in the center, very little y or x movement occurs. The problem I am facing is how to differenti...

android Phone Vibration doesn't stop using cancel method

Hi all, I wrote some code that mute the phone whenever an incoming call is received. When the phone in vibrate mode I use the following code to stop the phone vibration: Vibrator vib = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); vib.cancel(); While it worked on my Nexus One with android 2.1, it seems that it doesn'...

How long does AudioServicesPlaySystemSound(kSystemSoundID_Vibrate) last?

I don't have access an iPhone to test on right now. Can anyone tell me how long this call makes the phone vibrate? Thanks. ...

Vibrate settings on Android 2.2

Hi, 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. Up to Android 2.1 I have no problem, when I want to disable vibrate I do am.setVibrateSetting(AudioManager.VIBRATE_TYPE_RINGER,AudioManager.VIBRATE_SETTING_OFF); am.setVi...

AudioServicesPlaySystemSound vibration works but not sound

AudioServicesPlaySystemSound doesn't do anything but AudioServicesPlayAlertSound makes the iPhone vibrate. AudioServicesCreateSystemSoundID returns success. I'm developing on iPhone3G running iOS4. Any ideas? Peter ===== Here's how I create the sound: NSString *sndPath = [[NSBundle mainBundle] pathForResource:@"first_touch" ofType:@...