Android: save sound as ringtone / SQLiteConstraintException

前端 未结 2 1484
粉色の甜心
粉色の甜心 2021-01-14 05:31

I\'m trying to save a sound as a ringtone in Android using this code. It works like a charm but will fail if I try to save a ringtone that has already been inserted.

2条回答
  •  不要未来只要你来
    2021-01-14 06:22

    It is not caught because the exception is not in your code. It is not even in your process. It is in the process of the MediaStore content provider.

提交回复
热议问题