Changelog History
Page 1
-
v4.2.1 Changes
January 09, 2018 -
v4.2.0 Changes
January 09, 2018โ Added
- Made OK/Cancel strings into library strings for easy overridability #157 (spacecowboy)
๐ Changed
- โก๏ธ Update build tools to 26.0.2 and update Dropbox sample to v2 API #155 (mitchyboy9)
-
v4.1.0 Changes
April 07, 2017 -
v4.0.1 Changes
April 07, 2017Fixed
- Destroy Loader after finish to avoid clearing selections #137 (spacecowboy)
-
v4.0.0 Changes
February 03, 2017๐ฅ Breaking changes
You are now required to define a
FileProvider
in your manifest for the SD-card picker 101aa70Due to recent changes in Android 7.0 Nougat, bare File URIs can no longer be returned in a safe way. This change requires you to add an entry to your manifest to use the included
FilePickerFragment
and change how you handle the results.You need to add the following to your app's
AndroidManifest.xml
:<providerandroid:name="android.support.v4.content.FileProvider"android:authorities="${applicationId}.provider"android:exported="false"android:grantUriPermissions="true"> <meta-dataandroid:name="android.support.FILE_PROVIDER_PATHS"android:resource="@xml/nnf_provider_paths" /> </provider>
Then you must change your result handling. Here is a code snippet illustrating the change for a single result (the same applies to multiple results):
protected void onActivityResult(int requestCode, int resultCode, Intent intent) { // The URI will now be something like content://PACKAGE-NAME/root/path/to/fileUri uri = intent.getData(); // A new utility method is provided to transform the URI to a File objectFile file = com.nononsenseapps.filepicker.Utils.getFileForUri(uri); // If you want a URI which matches the old return value, you can doUri fileUri = Uri.fromFile(file); // Do something with the result...}
This change was required in order to fix
FileUriExposedException
being thrown on Android 7.0 Nougat, as reported in #115 and #107.โก๏ธ Please see the updated activity in the sample app for more examples.
๐ Changed
Reading multiple selections via
intent.getStringArrayListExtra(AbstractFilePickerActivity.EXTRA_PATHS)
is now available for all Android versions 4fef8f8This field was previously only populated on versions below Android 4.3. If you target Android versions before 4.3, you can now use a single method of getting the results instead of switching based on version number.
-
v4.0.0-beta1 Changes
October 22, 2016๐ฅ Breaking changes
You are now required to define a
FileProvider
in your manifest for the SD-card picker 101aa70Due to recent changes in Android 7.0 Nougat, bare File URIs can no longer be returned in a safe way. This change requires you to add an entry to your manifest to use the included
FilePickerFragment
and change how you handle the results.You need to add the following to your app's
AndroidManifest.xml
:<providerandroid:name="android.support.v4.content.FileProvider"android:authorities="${applicationId}.provider"android:exported="false"android:grantUriPermissions="true"> <meta-dataandroid:name="android.support.FILE_PROVIDER_PATHS"android:resource="@xml/nnf_provider_paths" /> </provider>
Then you must change your result handling. Here is a code snippet illustrating the change for a single result (the same applies to multiple results):
protected void onActivityResult(int requestCode, int resultCode, Intent intent) { // The URI will now be something like content://PACKAGE-NAME/root/path/to/fileUri uri = intent.getData(); // A new utility method is provided to transform the URI to a File objectFile file = com.nononsenseapps.filepicker.Utils.getFileForUri(uri); // If you want a URI which matches the old return value, you can doUri fileUri = Uri.fromFile(file); // Do something with the result...}
This change was required in order to fix
FileUriExposedException
being thrown on Android 7.0 Nougat, as reported in #115 and #107.โก๏ธ Please see the updated activity in the sample app for more examples.
๐ Changed
Reading multiple selections via
intent.getStringArrayListExtra(AbstractFilePickerActivity.EXTRA_PATHS)
is now available for all Android versions 4fef8f8This field was previously only populated on versions below Android 4.3. If you target Android versions before 4.3, you can now use a single method of getting the results instead of switching based on version number.
-
v3.1.0 Changes
September 30, 2016๐ Changelog
๐ Changes
-
v3.0.1 Changes
โ Added
- โ Add ability to define a list divider in theme #99 (spacecowboy)
๐ Changed
๐ Fixed
- ๐ Fix some of the samples #108 (spacecowboy)
- ๐ Use
srcCompat
for vector drawables #112 (spacecowboy)
-
v3.0.0 Changes
โ Added
- โ Add ability to enter a new filename #83 (spacecowboy)
- Select one file with a single click #92 (rastikw)
-
v2.5.3 Changes
โ Added
- โ Add a getItem method to FileItemAdapter #88 (spacecowboy)
- โ Add FastScroller sample implementation #89 (spacecowboy)
๐ Changed
Pass path into permission and refresh handlers c9d7035
This allows for better handling in case of denied/missing permissions, as well the ability to request more fine-grained permissions.
๐ Fixed