#Android-FilePicker
Installation
- As of now, It is only available in jCenter(), So just put this in your app dependencies:
compile 'com.droidninja:filepicker:1.0.0'- If you are using Application class in the manifest file (android:name), you need to include tools:replace="android:name" in the tag. e.g
<application android:name=".ApplicationClass" android:icon="@drawable/ic_launcher" tools:replace="android:name"> ...... </application>
Usage
Just include this in your onclick function:
- For photopicker:
FilePickerBuilder.getInstance().setMaxCount(5) .setSelectedFiles(filePaths) .setActivityTheme(R.style.AppTheme) .pickPhoto(this);
- For document picker:
FilePickerBuilder.getInstance().setMaxCount(10) .setSelectedFiles(filePaths) .setActivityTheme(R.style.AppTheme) .pickDocument(this);
Credits
Inspired by PhotoPicker
Youtube Demo