2012-02-05, 12:21 AM
I'm in to minds about how to provide access to Music and Video folders in nDroid and it seems like I have two options...
The second would mean potentially very quick navigation in the nDroid app but requires a more complex recursive directory scan to produce a database of information (using the term 'database' generically). I've also never coded anything which does this sort of recursion on folder sub-trees.
Just looking for any comments / hints / advice.
Cheers,
Brian
- Simply provide a list of top-level folders and when a user selects one, contact the nDroid service and get it to return a list of items (folders / media files) in that folder.
- Pre-process the entire folder tree and compile a list of paths to media files which nDroid maintains in a DB on the device.
The second would mean potentially very quick navigation in the nDroid app but requires a more complex recursive directory scan to produce a database of information (using the term 'database' generically). I've also never coded anything which does this sort of recursion on folder sub-trees.
Just looking for any comments / hints / advice.
Cheers,
Brian