M Marco Iannaccone Member Licensed User Longtime User Dec 21, 2016 #1 I have an HTML form loaded in a webview where the user can fill some fields and also submit a photo. When selecting the field (the form is on a Wordpress blog with GravityForms plugin) I can see the menu with the possibility of selecting a phto/video from the device gallery or take a photo with the camera but, when I click on either of these, the app crashes (and I can't see any exception info from the B4i console). Should I give the app or the webview some specific permission or/and intercept some particolar URL types in the webview for making it work...?
I have an HTML form loaded in a webview where the user can fill some fields and also submit a photo. When selecting the field (the form is on a Wordpress blog with GravityForms plugin) I can see the menu with the possibility of selecting a phto/video from the device gallery or take a photo with the camera but, when I click on either of these, the app crashes (and I can't see any exception info from the B4i console). Should I give the app or the webview some specific permission or/and intercept some particolar URL types in the webview for making it work...?
Erel B4X founder Staff member Licensed User Longtime User Dec 21, 2016 #2 Yes. Near the end of the first post: https://www.b4x.com/android/forum/threads/imedia-library-camera-and-videoview.46144/ Upvote 0
Yes. Near the end of the first post: https://www.b4x.com/android/forum/threads/imedia-library-camera-and-videoview.46144/
M Marco Iannaccone Member Licensed User Longtime User Jan 13, 2017 #4 Setting the correct permission makes everything work correctly, but I noticed that, whe using the camera, the photos/video aren't saved into the device gallery. Can I set the permissions and/or the webview for making this happen? Thanx Upvote 0
Setting the correct permission makes everything work correctly, but I noticed that, whe using the camera, the photos/video aren't saved into the device gallery. Can I set the permissions and/or the webview for making this happen? Thanx
Erel B4X founder Staff member Licensed User Longtime User Jan 15, 2017 #5 You can use the phone library to add an image to the device gallery. Upvote 0
M Marco Iannaccone Member Licensed User Longtime User Jan 16, 2017 #6 Yes... but I meant to automatically save into the gallery the photo or video taken from a webview with gallery/camera/mic permissions. Upvote 0
Yes... but I meant to automatically save into the gallery the photo or video taken from a webview with gallery/camera/mic permissions.