After experiencing issues with mkdirs() and poking around the interwebs, I get the impression that there are thread safety issues with mkdirs().
Is there a way to ensure
Do all your directory creation in a worker thread that serializes everything. You can use a Looper
and a Handler
to make it easy to post Runnables
that call mkdirs to your worker thread. When you're done making directories, you can call Looper.quit() to end the thread after it processes the last posted Runnable
. The documentation for Looper has sample code that shows how near to trivial this is to do.