[android-developers] Re: Vibrator.vibrate() makes the application crash

2010-03-29 Thread Streets Of Boston
Nope. Your emulator won't 'shake'. I'm not sure what the call to 'context.getSystemService(Context.VIBRATOR_SERVICE);' returns when there is no vibration device in the phone. But i would check the return value of this call. If this call throws an exception, put it inside a 'try - catch' block:

Re: [android-developers] Re: Vibrator.vibrate() makes the application crash

2010-03-29 Thread Simone Russo
Ok, so that's the only way ;) Thanks a lot Simone On Mon, Mar 29, 2010 at 11:35 PM, Streets Of Boston flyingdutc...@gmail.com wrote: Nope. Your emulator won't 'shake'. I'm not sure what the call to 'context.getSystemService(Context.VIBRATOR_SERVICE);' returns when there is no vibration