Hi,
I’m currently searching my Android’s directory (starting at root, /) via lfs.dir().
It works (with some caveats to avoid loops in special system directories), but …
it takes quite some time (10 to 30 seconds?).
I can’t report progress during the search (because I’m never “exiting” back to the Corona SDK main loop).
Is the only way to report progress during things like this something like:
Make my recursive directory walker un-recursive, so that
whenever I would have wanted to recurse, I instead save the current lfs.dir object in a stack.
(and when I hit the end of the current object, I “pop” the stack and resume with the prior
directory object).
For any given directory object, I’d iterate through it (presumably doing something
interesting), and every 1/3 second (or so), I’d update my progress indicator,
and then schedule a resume of the walk of the
current directory object for a millisecond or two from now,
and then “exit”. That “exit” gives the Corona main loop a chance to run, updating the display.
?
I had thought “hey, maybe native.new<mumble> calls might actually change the screen immediately”,
but, no, they don’t.
I had also looked around for any ability to do direct (raw) screen access, but couldn’t find anything like that
(that would have let me do a recursive task, and update the screen myself 
thanks,
Stan