How to store a file on an SD card (external)

前端 未结 2 1599
深忆病人
深忆病人 2021-01-23 13:23

I want to store a file on the SD card using File. I already achieved to store a file in external storage (named internal storage in my file explorer app. This is NO

2条回答
  •  别那么骄傲
    2021-01-23 13:31

    Using this may help you:

    An answer to Stack Overflow question How do I get the external storage's path?

    Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)
    

提交回复
热议问题