SyntaxFix
Write A Post
Hire A Developer
Questions
Just put the below simple code :
notification.sound = Uri.parse("android.resource://" + context.getPackageName() + "/" + R.raw.sound_file);
For Default Sound:
notification.defaults |= Notification.DEFAULT_SOUND;