NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
Notification notification1 = new Notification();
if (notificationManager == null) {
return;
}
//notification1.defaults |= Notification.DEFAULT_SOUND;
ContentResolver cr = context.getContentResolver();
Cursor cursor = cr.query(MediaStore.Audio.Media.INTERNAL_CONTENT_URI,
null, "_display_name = ? ",
new String[] { "beep-beep.ogg" }, null);
if(cursor.moveToFirst()==true){
String id = cursor.getInt(0)+"";
notification1.sound=Uri.withAppendedPath(MediaStore.Audio.Media.INTERNAL_CONTENT_URI,id);
notificationManager.notify(0,notification1);
}