Set Notification Sound As Default
I'm using this code to set a sound as a notification message after I saved the sound: ---------------after saving--------------- File k = new File('/sdcard/Bizzsound/', 'b1.mp3');
Solution 1:
I guess you can use the following
RingtoneManager.setActualDefaultRingtoneUri(this, RingtoneManager.TYPE_NOTIFICATION, uriObjectofYourAudioFile);
You would also have to give the following permission
<uses-permission android:name="android.permission.WRITE_SETTINGS" ></uses-permission>
Post a Comment for "Set Notification Sound As Default"