Setting a custom ringtone produces FileNotFound exception?

前端 未结 1 791
面向向阳花
面向向阳花 2020-12-22 04:56

I\'m using the code below and receiving the \"FileNotFound\" exception. Can anyone explain why this is? I\'m using the emulator to test, 2.3.3.

private void         


        
1条回答
  •  爱一瞬间的悲伤
    2020-12-22 05:30

    Remember that you need to declare a permision to write to the external SD Card.

    Just add this line to your manifest.xml under the tag:

    
    

    0 讨论(0)
提交回复
热议问题