I am playing a sound file using this code inside a broadcast receiver activity:
notification.sound = Uri.parse(\"android.resource://emad.app/raw/seven_chimes
try using service to play the music.. after it play once, then stop your service and you can add your program on the onDestroy() service method.. hope it helps :)