Skip to content

File list is not displayed on Android 6.0 and targetSdkVersion < 23 #33

@mkurutin

Description

@mkurutin

hi,
I'm using your library within an application that runs on Android 6.0 but has an older targetSdkVersion=21. When I send the intent to open FilePickerActivity it is displayed empty with no files or folders in the list.
Some debugging showed that FilePickerActivity.init() method is not being called on my device. Looks like this method is responsible for setting this.curDirectory to list files from.
After some googling I found the root cause of the issue here:

If the device is running Android 5.1 (API level 22) or lower, or the app's targetSdkVersion is 22 or lower, the system asks the user to grant the permissions at install time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions