android SD卡存储

File path1 = Environment.getExternalStoragePublicDirectory(
          Environment.DIRECTORY_ALARMS);               /mnt/sdcard/Alarms
     File path2 = Environment.getExternalStoragePublicDirectory(
          Environment.DIRECTORY_DCIM);                  /mnt/sdcard/Camera
    File path3 = Environment.getExternalStoragePublicDirectory(
          Environment.DIRECTORY_DOWNLOADS);           /mnt/sdcard/Download
     File path4 = Environment.getExternalStoragePublicDirectory(
          Environment.DIRECTORY_MOVIES);              /mnt/sdcard/Video
    File path5 = Environment.getExternalStoragePublicDirectory(
          Environment.DIRECTORY_PICTURES);            /mnt/sdcard/Photo
    File path6 = Environment.getExternalStoragePublicDirectory(
          Environment.DIRECTORY_MUSIC);              /mnt/sdcard/Music
    File path7 = Environment.getExternalStoragePublicDirectory(
          Environment.DIRECTORY_NOTIFICATIONS);       /mnt/sdcard/Notifications
      File path8 = Environment.getExternalStoragePublicDirectory(
          Environment.DIRECTORY_PODCASTS);             /mnt/sdcard/Podcasts
                  File path9 = Environment.getExternalStoragePublicDirectory(
          Environment.DIRECTORY_RINGTONES);            /mnt/sdcard/Ringtones

 

 getExternalFilesDir(Environment.DIRECTORY_PICTURES),

/mnt/sdcard/Android/data/com.example.android.apis/files/Photo/

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。