@@ -53,15 +53,15 @@ Use following Intent to start the FileChooser
5353``` java
5454Intent i2 = new Intent (getApplicationContext(), FileChooser . class);
5555i2. 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
6060To 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
7575Intent i2 = new Intent (getApplicationContext(), FileChooser . class);
7676i2. putExtra(Constants . SELECTION_MODE ,Constants . SELECTION_MODES. MULTIPLE_SELECTION. ordinal());
77- startActivityForResult(i2,PICK_CONTACT_REQUEST );
77+ startActivityForResult(i2,PICK_FILE_REQUEST );
7878```
7979
8080To 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