I want to use the vibrator method in my application, and I have it working on my phone, which has a vibrator that is great. however phones that do not have a vibrator are going on. doesn't it work at all? Does the application work? Or does he not appear on the market at all? or do I need to ask the phone if it has a vibrator?
I would also like to know if this code is good or any corrections? here is my code ..
Vibrator vi;
vi = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE);
vi.vibrate(100);
<uses-permission android:name="android.permission.VIBRATE" /> (In manifest)
Thanks, any help would be great.
source
share