fix the sd card related crash on a emulator.
fix the crash when creating a folder and file on the sd card of a
emulator.