1

receiving this error in logcat with illegal argument exception

statfs /storage/sdcard0 failed, errno: 13

My code is

public double totalStorage() throws Exception {


        **stat = new StatFs(Environment.getExternalStorageDirectory().getPath());**
        return ((double) stat.getBlockSize()
                * (double) stat.getBlockCount());
    }

Please help

4

1 回答 1

1

Errno 13 表示“权限被拒绝”,表示您的权限不足。

于 2013-08-13T09:22:37.097 回答