B4A Question user notification sound - Geezer (first post)    Jun 04, 2020   (2 reactions) dim aPhone as PhoneVibrate B4A Question How to use PhoneVibrate in phone library - BillMeyer (first post)    Mar 13, 2017   (3 reactions) In your Globals:
Dim phv as PhoneVibrate
Then wherever you want to use it:
phv.Vibrate(1000) (The 1000 is time in milliseconds that it must vibrate - use your own number)
Hope this helps !! B4A Question PhoneVibrate and Android 14 - Erel (first post)    Mar 28, 2024 It will not work when your app is not in the foreground. You need to use StartReceiverAt and show a notification. The notification will cause the phone to vibrate. B4A Question Simple Vibrate command? - DonManfred (first post)    Jan 12, 2019   (1 reaction) 1. Use the Forumsearch should always be a thing to try.
https://www.b4x./?query=PhoneVibrate
The first result is the link to the documentation.
https://www.b4x.com/android/help/phone.html#phonevibrate
The HTML Filename is the Library where phonevibrate belongs to. B4A Question PhoneVibrate Not Work in Android 11 - cb56 (first post)    Mar 06, 2023 Sorry, I was using too low a time (5 milliseconds) which worked well on the Samsung S8 with Android 9, while on the Samsung S20 with Android 11 I had to raise it to at least 25 milliseconds.
It is probably a phone problem and not related to the Android version.
You can close, thank you B4A Question Using B4A. How to I get haptic feedback when a button is pressed? - Erel (first post)    Sep 04, 2018   (1 reaction) It is not possible to call it from a service. You can use PhoneVibrate from the Phone library to achieve a similar effect. B4A Question Notification with vibration - slugger (first post)    Aug 14, 2024 Yes.
Imagine you have your phone in your pocket, screen is off.
You receive a phone call and your phone sends out a sound alert AND it starts vibrating.
I need exactly the same.
I have an app which rests in the background waiting for some data fetched from a server, when the data arrive they are B4A Library NotificationListener library (NotificationListenerService) - Erel (first post)    Oct 05, 2016 You can use PhoneWakeState.KeepAlive to turn on the screen and you can use PhoneVibrate to vibrate the phone. For further discussion please start a new thread. B4i Question Tactile response - TheRealMatze    Dec 30, 2021 Hello,
is it possible to give a tactile response manually (for example onclick)? In Android i use phonevibrate with 5ms duration. This is far away from excellent, but better than nothing. On B4i is phonevibrate not available, is there anything else i can use?
Thanks!
Regards
Matthias B4A Question Vibrate phone when asleep - jimseng (first post)    Aug 13, 2023 I'm not running any of this in a service so I'm a bit confused as to whether it will receive any serial data when paused. However. Using
Dim awake As PhoneWakeState
awake.KeepAlive(True) turns the screen on to the lock screen.
Using:
Dim r As Reflector
r.Target = r.GetActivity
Page: 1   2   3   4   5   6   7   Powered by ColBERT |