Android Vibration While Locked/sleep
Whether the user has the screen on or off I want to notify the user by a vibration. If the screen is on, this works well: Vibrator vibrator = (Vibrator) getApplicationContext().get
Solution 1:
Not sure if you have looked into Android's Notifications, but sounds like this would be perfect for what you are trying to achieve.
http://developer.android.com/intl/es/reference/android/app/Notification.Builder.html
when building a notification, you can cause your phone to vibrate with the setVibrate() method.
Post a Comment for "Android Vibration While Locked/sleep"