Skip to content

Commit cf3a21a

Browse files
committed
2 parents eeac535 + 8e7abc1 commit cf3a21a

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

README.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ A FileBrowser / FileChooser for Android that you can integrate to your app to br
99
<dependency>
1010
<groupId>com.adityak</groupId>
1111
<artifactId>browsemyfiles</artifactId>
12-
<version>1.3</version>
12+
<version>1.5</version>
1313
<type>pom</type>
1414
</dependency>
1515
```
1616
# In build.gradle
1717
```
18-
compile 'com.adityak:browsemyfiles:1.3'
18+
compile 'com.adityak:browsemyfiles:1.5'
1919
```
2020

2121

2222
<img src="https://cloud.githubusercontent.com/assets/19688735/25305189/670232ec-2794-11e7-819f-b92f487b3075.png" width="300"> <img src="https://cloud.githubusercontent.com/assets/19688735/25305190/670328a0-2794-11e7-86ac-62b69af7b577.png" width="300">
2323
<img src="https://cloud.githubusercontent.com/assets/19688735/25305188/6701de1e-2794-11e7-981f-7d6d0124b2b2.png" width="300"> <img src="https://cloud.githubusercontent.com/assets/19688735/25305187/6701b74a-2794-11e7-8057-c5677db858b0.png" width="300">
2424
<img src="https://cloud.githubusercontent.com/assets/19688735/25305186/6701b33a-2794-11e7-8c58-d5da64e40768.png" width="300"> <img src="https://cloud.githubusercontent.com/assets/19688735/25305191/67038f8e-2794-11e7-8777-4bb0db870c31.png" width="300">
25-
<img src="https://cloud.githubusercontent.com/assets/19688735/25305192/6730cec2-2794-11e7-8ab0-9b696822520f.png" width="300"> <img src="https://cloud.githubusercontent.com/assets/19688735/25305193/6733e6fc-2794-11e7-852d-66fe162655d2.png" width="300">
25+
<img src="https://cloud.githubusercontent.com/assets/19688735/25305192/6730cec2-2794-11e7-8ab0-9b696822520f.png" width="300"> <img src="https://cloud.githubusercontent.com/assets/19688735/25563142/0f8568ca-2db3-11e7-8782-f22bcce53fd1.png" width="300">
2626

2727
It easily integrates with your app's color scheme. You can change the color scheme using the following in your styles.xml
2828

@@ -136,7 +136,22 @@ and in the broadcast receiver use the following to get the extras
136136
Bundle b = intent.getExtras()
137137
```
138138

139+
### To load a particular directory instead of the normal root directory
140+
Add the following in the intent
141+
``` java
142+
Intent i = new Intent(this, FileBrowser.class); //works for all 3 main classes (i.e FileBrowser, FileChooser, FileBrowserWithCustomHandler)
143+
i.putExtra(Constants.INITIAL_DIRECTORY, new File(Environment.getExternalStorageDirectory().getAbsolutePath(),"Movies").getAbsolutePath());
144+
```
145+
146+
147+
### To list only the files with a particular extension
148+
Add the following in the intent
149+
``` java
150+
Intent i = new Intent(this, FileBrowser.class); //works for all 3 main classes (i.e FileBrowser, FileChooser, FileBrowserWithCustomHandler)
151+
i.putExtra(Constants.ALLOWED_FILE_EXTENSIONS, "mkv;mp4;avi");
152+
```
139153

154+
Use file extensions delimited by semicolon
140155

141156
If you have any questions/queries/Bugs/Hugs please mail @
142157
adityak368@gmail.com

0 commit comments

Comments
 (0)