MediaPlayer mp = MediaPlayer.create(context,R.raw.audio); mp.start();
Thread workerThread = new Thread(new Runnable() { public void run() { try { MediaPlayer mp = MediaPlayer.create(context,R.raw.audio); mp.start(); } catch (Throwable t) { Log.i("StartMediaFile", "Thread exception "+t); } } }); workerThread.start();