Lazarus

Programming => Operating Systems => Android => Topic started by: kristof.project on April 23, 2021, 05:26:21 pm

Title: How to do a phone vibration
Post by: kristof.project on April 23, 2021, 05:26:21 pm
hello,

I try to create an application for "Shoping". I use to BareCodeScanner without probleme at this time.
Is it possible to have phone vibration on scan result ?
And is there a wiki or pdf for the component ?

Thank for your Help



 
Title: Re: How to do a phone vibration
Post by: rsu333 on April 25, 2021, 08:32:24 am
Try this code
after  completion of  your desired process you can add following code
self.vibrate( duration in milisec)
Thanks LAMW LAZARUS
Title: Re: How to do a phone vibration
Post by: kristof.project on April 26, 2021, 03:29:57 pm
thank you

exactly i want.
with sleep, i can do a double if produit found and single for not found.
Title: Re: How to do a phone vibration
Post by: rsu333 on April 28, 2021, 08:41:31 am
ok,
Actually LAMW and LAZARUS provide us so may things freely ,I like to study LAZARUS and LAMW thoroughly .
THANKS   to LAMW-LAZARUS
TinyPortal © 2005-2018