@@ -5,6 +5,7 @@ Simple, Responsive & Easy To Use Library For Android
55# INTRODUCTION
66### Showing file explorer in Android has never been easier.
77<br />
8+
89# GETTING STARTED
910
1011#### GRADLE SETUP:
@@ -22,17 +23,21 @@ Simple, Responsive & Easy To Use Library For Android
2223 }
2324```
2425##### Step 2: Add it in your build.gradle (Module: app )
26+
2527<br />
28+
2629```
2730 dependencies {
2831 implementation 'com.github.BalioFVFX:Simple-Android-File-Explorer-Library:1.0'
2932 }
3033```
3134
3235# USAGE
36+
3337##### Note: Before showing the file explorer you must ask for "WRITE_EXTERNAL_STORAGE" permission.
3438
3539<br />
40+
3641#### Showing the file explorer
3742
3843```
@@ -43,8 +48,11 @@ startActivityForResult(intent, REQUEST_CODE);
4348<br />
4449
4550#### Getting the selected file absolute path
51+
4652##### Note: Your activity must override the onActivityResult(); method.
53+
4754![ Permission Image] ( https://i.imgur.com/zxt34Vy.png )
55+
4856```
4957 @Override
5058 protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
@@ -61,21 +69,28 @@ startActivityForResult(intent, REQUEST_CODE);
6169<img src =" https://i.imgur.com/WlVDRIG.png " alt =" drawing " width =" 360 " />
6270
6371#### Changing the default icons with your custom drawables
72+
6473<br />
6574
6675```
6776SimpleFileResources.imageFileId = R.drawable.ic_my_custom_file;
6877SimpleFileResources.imageDirectoryId = R.drawable.ic_my_custom_directory;
6978```
7079##### If you want to use the default icons:
80+
7181<br />
82+
7283```
7384SimpleFileResources.imageFileId = null;
7485SimpleFileResources.imageDirectoryId = null;
7586```
87+
7688#### END
89+
7790##### You are free to use this library however you want. Credit is appreciated but it's not requiered.
91+
7892##### Feel free to suggest new features or report problems by opening new issue or contacting me by email.
93+
7994<br />
8095
8196[ ![ ] ( https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif )] ( https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=HU65XMSW3YZ5S )
0 commit comments