coolsharp의 놀이터

private void ExternalStorageCheck() {

        String state = Environment.getExternalStorageState();

 

        if (Environment.MEDIA_MOUNTED.equals(state)) {

            // We can read and write the media

            Log.i( "coolsharp", "마운트 되어 있고 쓰기도 가능함");

        } else if (Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) {

            // We can only read the media

            Log.i( "coolsharp", "마운트 되어 있지만 읽기 전용");

        } else {

            // Something else is wrong. It may be one of many other states, but all we need

            //  to know is we can neither read nor write

            Log.i( "coolsharp", "마운트 되어 있지 않음");

        }

    }

Posted by coolsharp_backup