Setting a custom ringtone produces FileNotFound exception?

前端 未结 1 790
面向向阳花
面向向阳花 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 <manifest> tag:

    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    
    0 讨论(0)
提交回复
热议问题