Boolean sdCardExist = Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED);
if (sdCardExist)
{
SDCardPath = Environment.getExternalStorageDirectory().getAbsolutePath();
DataPath = SDCardPath + DATA_PATH;
}
时间: 2024-10-30 12:35:20