Code example for SoundPool

0
        mHandler = new android.os.Handler();
        mAssets = getAssets();
        setVolumeControlStream(android.media.AudioManager.STREAM_MUSIC);  
 
        mSoundPoolID = 1;
        mSoundPool = new SoundPool(8,android.media.AudioManager.STREAM_MUSIC,0);
       //getResources().getAssets(); 
 
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, 
                WindowManager.LayoutParams.FLAG_FULLSCREEN);
		 
		metrics = new DisplayMetrics ();
		getWindowManager().getDefaultDisplay().getMetrics (metrics);
		 
        // Pre-load these, so the c++ knows where to find them 
        ::foreach ndlls:: 
           System.loadLibrary("::name::"); 
         ::end:: 
        org.haxe.HXCPP.run("ApplicationMain"); 
Connect your IDE to all the code out there  Get Codota for Java