Skip to content

Storage Folders to Adapter #4

Description

@friostd

How do I get all the storage folders and add them to the treeViewAdapter? I've tried all sorts of ways, but I can't.

File root = new File("/storage/emulated/0/");
for (File file : root.listFiles()) {
    TreeNode node = new TreeNode(file.getName(), R.layout.layout);
}

The problem is adding the child folders, I don't know how to do this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions