Question: This only allows to get image but i want users to be able to pick documents too.

```
Intent intent = new Intent();
intent.setType("image/*");
intent.setAction(Intent.ACTION_GET_CONTENT);
startActivityForResult(Intent.createChooser(intent, "Select Picture"),PICK_IMAGE); 

```

Answer: 
This error was happening to me because I was using Git submodules in my project and I had the following folders:

* `./node_modules` - this is for the main project. There was vue installed in these node\_modules.
* `./my_git_submodules/vue_design_system/node_modules` - design system that provides basic components (also uses vue). **Vue was also installed here!!**

So because both:

* `./node_modules/vue` and
* `./my_git_submodules/vue_design_system/node_modules/vue`

existed, running `npm run serve` (`vue-cli-service build` underneath) built two instances of Vue. This was
a really nasty issue because it broke reactivity in certain cases
(ie. you click a button and nothing happens - you just get the
$listeners readonly error)

**Quick fix:**  

removing node\_modules in the child folder (vue\_design\_system) and running npm run serve worked for me.

**Long term fix:**  

you'll probably need to make Webpack ignore nested node\_modules folders by adding a rule in `vue.config.js`
I had the same problem as above. I am using git submodules and I used

```js
yarn add ./submodule

```

Somehow there ended up being a node\_modules directory in the ./submodule directory and that confused everything.

And it was loading two Vue instances.