How to clear Mediastore before setting ringtone

后端 未结 1 1615
悲&欢浪女
悲&欢浪女 2021-01-14 12:43

When I set a ringtone from my app works once, but when running the code again, it tries to create a duplicate entry in the media store, which creates problems. Without creat

相关标签:
1条回答
  • 2021-01-14 13:11

    It looks like the error is this line:

    getContentResolver().delete(pURI, MediaStore.MediaColumns.DATA + "\"" + outputFile.getAbsolutePath() + "=\"", null);
    
    0 讨论(0)
提交回复
热议问题