How to open the camera in the webviewer?

hi,i use HTML tag input file from camera to upload a img in webviwer,but cannot open the camera,in browser is ok,is the webviwer bug?

1 Like

Could you please explain what you mean? If you’re using a translation service, maybe try asking a friend to translate for you? :sweat_smile:

make sure you have used right HTML and for webviewer you have enabled permissions,(from webviewer properties)

i use the below html:
<input type=“file” name=“file” capture=“camera” @change=“takePhoto”>
and how to enabled permissions from webviewer properties?
i have checked the prompt for permission.

yes that is for permission.

but no work,the webviwer in kodular cannot open the camera…
if open in browser,it is ok.

i am not so familiar with html but i think html is not valid, because it not for opening camera and all its just for a text view.

Try adding this in your manifest.xml file

<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
1 Like

thank you!
but how to modify the xml file?
if when kodular build apk,auto add this permission,then it is very good.
wish kodular team can slove this problem,thanks!

1 Like
  1. Export apk and change .apm to .rar
  2. Extract rar, find and edit manifest file with any editor.
  3. Compress folder to .rar and change extension to .apk

There is many permissions which is used less of any app like this so this is edit by user only and many usefull are added by kodular itself.

I tried what you said. It doesn’t solve the problem…
could you modify a kodular apk,send me to try?


Decomplile the APK with eg APK Studio Editor or AppToMarket, edit the Manifest, recompile, sign.


what about dragging the camera component into your project (without using it), which adds these permissions automatically?



i tried,but it is not work too.
who can open camera in the webviewer?help me…

thanks,i decompliled the APK, the xml file find out already contains the uses-permission for camera and the storage,so i think It’s not about the uses-permission,it is about webviwer.

Is it an android app or a software

Please can you drop the link.

Google is your friend, Always get help from Google.



thank you very much!
But it’s sad that webviwer in kodular no such parameter.
@Hossein please check this,could you add allowcamera parameter in kodular webviwer ?