How to produce shaking(revaberating) effect in android(Similar to PS2 when a car hit an obstacle)?
            Asked
            
        
        
            Active
            
        
            Viewed 240 times
        
    1 Answers
2
            public Vibrator vibrator;
vibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE);
vibrator.vibrate(1000);
You will also need android.permission.VIBRATE in the manifest
        Chris Stratton
        
- 39,853
 - 6
 - 84
 - 117