public static MediaPlayer mp=null; public static void playGeneric(int name, final ImageButton button,final ImageButton pervious,Context context) { button.setEnabled(
Try changing mp.release() into reset(). that could help you.
mp.release()
reset()