Android: vibrator method (if phone has no vibrator?)
问题 I want to use the vibrator method in my app, and i have got it working on my phone which has a vibrator which is great. however phones that don't have a vibrator what happens. does it not work at all? does it stop the app working? or does it not show up in the market at all? or do i have to ask the phone if it has a vibrator? I would also like to know if this code is good or needs any adjustments? here is my code.. Vibrator vi; vi = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); vi