当前位置: 代码迷 >> Android >> android惯用代码积累
  详细解决方案

android惯用代码积累

热度:1   发布时间:2016-05-01 16:42:21.0
android常用代码积累
一、读取sd卡
File file = null;
boolean sdCardExist = Environment.getExternalStorageState().equals(
                android.os.Environment.MEDIA_MOUNTED);
        if (sdCardExist) {
              //SD卡存在
            file = Environment.getExternalStorageDirectory();
        }
  相关解决方案