I want play audio while mobile is shaking
===

   
    
    I want to play audio file while mobile is shaking.I inserted this code for my shaking 
code. 
MediaPlayer mPlayer1 = MediaPlayer.create(null, R.raw.hello);

             try {
                 mPlayer1.prepare();
             } catch (IllegalStateException e) {
                 // TODO Auto-generated catch block
                 e.printStackTrace();
             } catch (IOException e) {
                 // TODO Auto-generated catch block
                 e.printStackTrace();
             }

             mPlayer1.start();
    
      
        
        
             
                   
             
            
            
            
            
           