Auto create folder for C#. Avoid null pointer after calling runOnUiThread().