I tried to get files in /sdcard/
folder, but it throws NullPointerException
Then I tried to get folders in /
path it returns
40
factory
usbdisk
sdcard
storage
config
cache
acct
vendor
d
etc
mnt
ueventd.tuna.rc
ueventd.rc
ueventd.goldfish.rc
system
sys
sepolicy
seapp_contexts
sbin
res
... and others
When I do this in 4.3 project it works well!
UPDATE
code in 4.4 which not work
File file = Environment.getExternalStorageDirectory();
File[] files = file.listFiles();
Debugger.info(files.length); // NullPointerExcepton
for(File f : files){
Debugger.info(f.getName());
}