Environment.getExternalStorageDirectory() returns null int AndroidTestCase

Viewed 841

I have a test case, and using there Environment.getExternalStorageDirectory() call, and it returns null.

I have the "write external storage" permission in app's manifest (and sd cards works fine in app), but it does not work in test case. Why and how to fix it?

Device is SGS3, os version is 4.4.

Debugger

1 Answers
Related