You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for your great project, it really simple and easy to use.
I like show a directory chooser and allow user create new directory in my app, I modify and test the example code in Xiao Mi A1(Android 9, API level28), it work well, then I create emulator for Android 4.4(API level 19 with Google APIs) and Android 4.1(API level 16 with Google APIs), it not show the plus button in the older version no matter internal or external storage, is the API not support older version?
this is my code:
StorageChooser chooser = new StorageChooser.Builder()
.withActivity(StorageManageActivity.this)
.withFragmentManager(getFragmentManager())
.withMemoryBar(true)
.allowCustomPath(true) .allowAddFolder(true) .setType(StorageChooser.DIRECTORY_CHOOSER) // For pickup folder.
.withContent(c)
.build();
Unfortunately creating directories in external storage requires SAF permission which is not implemented, sorry for not mentioning in the README file that this is not possible.
Unfortunately creating directories in external storage requires SAF permission which is not implemented, sorry for not mentioning in the README file that this is not possible.
Any way you are right, creating new folder is allowed only in this path : context.getExternalFilesDir(null).getAbsolutePath()
/emulated/0/Android/data/
Even if we add the API 10 request for : android:requestLegacyExternalStorage="true"
Hi, thanks for your great project, it really simple and easy to use.
I like show a directory chooser and allow user create new directory in my app, I modify and test the example code in Xiao Mi A1(Android 9, API level28), it work well, then I create emulator for Android 4.4(API level 19 with Google APIs) and Android 4.1(API level 16 with Google APIs), it not show the plus button in the older version no matter internal or external storage, is the API not support older version?
this is my code:
StorageChooser chooser = new StorageChooser.Builder()
.withActivity(StorageManageActivity.this)
.withFragmentManager(getFragmentManager())
.withMemoryBar(true)
.allowCustomPath(true)
.allowAddFolder(true)
.setType(StorageChooser.DIRECTORY_CHOOSER) // For pickup folder.
.withContent(c)
.build();
chooser.setOnSelectListener(new StorageChooser.OnSelectListener() {
@OverRide
public void onSelect(String path) {
Toast.makeText(StorageManageActivity.this, path, Toast.LENGTH_LONG).show();
Log.e("SELECTED_PATH", path);
}
});
The Screenshot of Xiao Mi A1, API level 28
The Screenshot of Emulator, API level 16 and 19
Smartphone :
The text was updated successfully, but these errors were encountered: