Hi Zohob, Thanks for your response. I am able to vibrate the device. What I am looking is I want to happen it at certain date/time. You can think of setting reminders in calendars. Just in place of reminder I want the device to switch to Vibrate mode and once that time is over should come back to normal.
Hope this clarifies my requirement. Let me know if otherwise. On Monday, July 2, 2012 2:55:27 PM UTC+3, Zohob wrote: > > This may help you: > http://android.konreu.com/developer-how-to/vibration-examples-for-android-phone-development/ > Third passage "Example: Vibrate in a Given Pattern" and the fourth one: > > Vibrator v = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); > long[] pattern = { 0, 200, 500 }; > v.vibrate(pattern, 0); > > Will start immediately (gap of zero milliseconds), then vibrate 200 ms, > then pause for 500 ms. > > Am Montag, 2. Juli 2012 13:43:18 UTC+2 schrieb Ali: >> >> Dear All, >> >> We are looking for code to switch the Android device to Vibrate and back >> to normal for a given time. Can anyone share their findings/code >> snippets/APIs if used to achieve the same. >> >> Thanks for your time. >> >> Cheers, >> Ali >> > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

