Android ringtone set programmatically?

前端 未结 2 1604
不思量自难忘°
不思量自难忘° 2020-12-21 22:39

I want to implement set ringtone to my application after recording voice.Ringtone will set correctly only one time it will be set as ringtone while set again its not working

2条回答
  •  伪装坚强ぢ
    2020-12-21 23:41

    maybe you need to delete it first, i have been caught in the trouble for a day..

    getContentResolver().delete(uri, MediaStore.MediaColumns.DATA
                                + "=\"" + file.getAbsolutePath() + "\"", null);
    

提交回复
热议问题