I have a screen. I want alert vibrate with 10th seconds, 20th seconds, 30th seconds….
How can I do that ?
Thanks for reading
I have a screen. I want alert vibrate with 10th seconds, 20th seconds, 30th
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here’s a simple static method that uses a Timer to accomplish this. You pass in the amount of times to vibrate and the period between vibrations. The phone will vibrate for 100ms every
repeatPeriodSecondsforrepeatCounttimes.Here’s the documentation of the relevant classes: Alert, Timer, TimerTask