GeezerVison is showing github.com — Updated Readme · JoeView/Android-FilePicker@58581dc
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: README.md +36-2Lines changed: 36 additions & 2 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
|
4 | 4 |  |
5 | 5 |  |
6 | 6 |
|
7 | | - **Instruction** |
| 7 | +***Installation*** |
| 8 | + |
| 9 | +* As of now, It is only available in jCenter(), So just put this in your app dependencies: |
| 10 | +```gradle |
| 11 | + compile 'com.droidninja:filepicker:1.0.0' |
| 12 | +``` |
| 13 | + |
| 14 | +* If you are using Application class in the manifest file (android:name), you need to include **tools:replace="android:name"** in the <application> tag. e.g |
| 15 | +```xml |
| 16 | +<application |
| 17 | + android:name=".ApplicationClass" |
| 18 | + android:icon="@drawable/ic_launcher" |
| 19 | + tools:replace="android:name"> |
| 20 | + ...... |
| 21 | + </application> |
| 22 | +``` |
| 23 | + |
| 24 | + ***Usage*** |
8 | 25 |
|
9 | | - #TODO (soon) |
| 26 | + Just include this in your onclick function: |
| 27 | + * For **photopicker**: |
| 28 | + ```java |
| 29 | + FilePickerBuilder.getInstance().setMaxCount(5) |
| 30 | + .setSelectedFiles(filePaths) |
| 31 | + .setActivityTheme(R.style.AppTheme) |
| 32 | + .pickPhoto(this); |
| 33 | + ``` |
| 34 | + |
| 35 | + * For **document picker**: |
| 36 | + ```java |
| 37 | + FilePickerBuilder.getInstance().setMaxCount(10) |
| 38 | + .setSelectedFiles(filePaths) |
| 39 | + .setActivityTheme(R.style.AppTheme) |
| 40 | + .pickDocument(this); |
| 41 | + ``` |
| 42 | + |
| 43 | + |
10 | 44 |
|
11 | 45 | **Credits** |
12 | 46 |
|
|