General purpose implementation of Android's View to list files and directory