@@ -9,20 +9,20 @@ A FileBrowser / FileChooser for Android that you can integrate to your app to br
9
9
<dependency >
10
10
<groupId >com.adityak</groupId >
11
11
<artifactId >browsemyfiles</artifactId >
12
- <version >1.3 </version >
12
+ <version >1.5 </version >
13
13
<type >pom</type >
14
14
</dependency >
15
15
```
16
16
# In build.gradle
17
17
```
18
- compile 'com.adityak:browsemyfiles:1.3 '
18
+ compile 'com.adityak:browsemyfiles:1.5 '
19
19
```
20
20
21
21
22
22
<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 " >
23
23
<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 " >
24
24
<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 " >
26
26
27
27
It easily integrates with your app's color scheme. You can change the color scheme using the following in your styles.xml
28
28
@@ -136,7 +136,22 @@ and in the broadcast receiver use the following to get the extras
136
136
Bundle b = intent. getExtras()
137
137
```
138
138
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
+ ```
139
153
154
+ Use file extensions delimited by semicolon
140
155
141
156
If you have any questions/queries/Bugs/Hugs please mail @
142
157
adityak368@gmail.com
0 commit comments