Skip to content

Commit f0cd0a7

Browse files
authored
Update README.md
1 parent d776feb commit f0cd0a7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ Use following Intent to start the FileChooser
5353
``` java
5454
Intent i2 = new Intent(getApplicationContext(), FileChooser.class);
5555
i2.putExtra(Constants.SELECTION_MODE,Constants.SELECTION_MODES.SINGLE_SELECTION.ordinal());
56-
startActivityForResult(i2,PICK_CONTACT_REQUEST);
56+
startActivityForResult(i2,PICK_FILE_REQUEST);
5757
```
5858

5959

6060
To get the selected file, In your calling activity's onActivityResult method, use the following
6161

6262
```java
6363

64-
if (requestCode == PICK_CONTACT_REQUEST && data!=null) {
64+
if (requestCode == PICK_FILE_REQUEST && data!=null) {
6565
if (resultCode == RESULT_OK) {
6666
Uri file = data.getData();
6767
}
@@ -74,14 +74,14 @@ if (requestCode == PICK_CONTACT_REQUEST && data!=null) {
7474
``` java
7575
Intent i2 = new Intent(getApplicationContext(), FileChooser.class);
7676
i2.putExtra(Constants.SELECTION_MODE,Constants.SELECTION_MODES.MULTIPLE_SELECTION.ordinal());
77-
startActivityForResult(i2,PICK_CONTACT_REQUEST);
77+
startActivityForResult(i2,PICK_FILE_REQUEST);
7878
```
7979

8080
To get the selected file, In your calling activity's onActivityResult method, use the following
8181

8282
```java
8383

84-
if (requestCode == PICK_CONTACT_REQUEST && data!=null) {
84+
if (requestCode == PICK_FILE_REQUEST && data!=null) {
8585
if (resultCode == RESULT_OK) {
8686
ArrayList<Uri> selectedFiles = data.getParcelableArrayListExtra(Constants.SELECTED_ITEMS);
8787
}

0 commit comments

Comments
 (0)