On line 104
big_loop.start()
the NPE (Null Pointer Exception) is coming because it is finding big_loop
as null
. Hence one way is to put a null option check there
if(big_loop != null){
big_loop.start();
}
The NPE is coming because creation of big_loop
from raw sound files is failing on some devices.
Also, you need to stop() and release() mediaplayer, so that it does not fail because of failure of cleaning up resources as mentioned here - http://developer.android.com/reference/android/media/MediaPlayer.html
So in your activity in onStop()
@Override
public void onStop() {
super.onStop();
big_loop.stop();
big_loop.release();
}