Whenever I call Res := SelectDirectory('Test', '', Dir)
, Res
is always false. I expect a window to open on the phone where I can choose a folder. The second parameter being blank should mean all folders are shown.
I tried some folders that I know exist, like the Programs folder, SharedCamera, etc. No difference, it still does not work.
Root:= '';
Res:= SelectDirectory('Test', Root, Dir); // Always returns false.
{I tried Root:= System.IOUtils.TPath.GetPicturesPath + System.IOUtils.TPath.DirectorySeparatorChar;
and Root:= System.IOUtils.TPath.GetPicturesPath + System.IOUtils.TPath.DirectorySeparatorChar + '*.*';
and several others.}
I always get Res = False
and no window is shown.
I have made my own version instead of the official one that doesn't work.