if (Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED)) { /* 得到SD卡得路径 */ mRecAudioPath = Environment.getExternalStorageDirectory(); /* 更新所有录音文件到List中 */ musicList(); } else { Toast.makeText(Record.this, "没有SD卡", Toast.LENGTH_LONG).show(); }