Get sdcard directory by adb

前端 未结 3 1022
离开以前
离开以前 2021-02-03 22:41

I am making an application, which pulls files(Saved by android app) from the device sdcard by adb. The problem is that different devices, have various sdcard directories

3条回答
  •  鱼传尺愫
    2021-02-03 23:18

    Its better to use getExternalStorageDirectory() instead of System.getenv("EXTERNAL_STORAGE") This will give you external storage directory irrespective of device.

提交回复
热议问题