Archive 17/01/2023.

ScanDir Works On Linux But Not On Android

practicing01

Hello, the size of the results is 0 when running ScanDir on android but the right size when ran on linux. Am I doing something wrong? Thanks for any help.

Vector<String> files;

main_->filesystem_->ScanDir(files,
		main_->filesystem_->GetProgramDir() + "Data/Urho2D/" + name + "/animations/",
		"*", SCAN_FILES, false);
cadaver

ScanDir unfortunately doesn’t work inside the .apk, at least at the moment. However, there is an API call in the Android AssetManager which should allow at least limited support, it’s just a matter of trying it out.