Select Cordoba Crosswalk File. An application cannot perform this error action.

I am creating an Android application using Cordova with Crosswalk webview and dtworkshop-inappcrossbrowser plugin. The application effectively wraps the website.

There is a form on the website that allows you to upload a photo. The problem is that when I select the browse button, I get a "Select an action" message and then "No application can complete this action."

I'm not quite sure how the download button works, but I know that this is not an input element, because I experimented with input, and I know that it works.

I read that these might be permissions, so I added the following, but still no luck:

READ_EXTERNAL_STORAGE, INTERNET, WRITE_EXTERNAL_STORAGE, ACCESS_NETWORK_STATE, ACCESS_WIFI_STATE, CAMERA, MANAGE_DOCUMENTS.

I tested in android chrome browser and everything works, so I know this is related to the application.

I created the same iOS app and everything works. I know there are problems with the android website, so the reason I use the crosswalk plugin thought that these problems would be resolved.

Any advice on how I can get this job is greatly appreciated.

+6
source share
2 answers

, , accept = " accept =" image/ " accept =" video/ " . , .ext , i.e accept =" image/, video/", , . ,

+2

, , cordova.js script index.html.

index.html, .

<script type="text/javascript" src="cordova.js"></script>
0

Source: https://habr.com/ru/post/1664113/


All Articles