I would like to know if possible is to get data from webview. I mean I have form in webview. I want to click submit in form in this webview and I want to get data from every field and save that data in database. This is possible?
Asked
Active
Viewed 8,900 times
1 Answers
3
Yes it is possible, use addJavascriptInterface
in your webview, get click event using JS then call a android function using javascript interface.

Arun C
- 9,035
- 2
- 28
- 42
-
**This works for Android only.** The interface will also be called if the user is viewing from desktop or even an iPhone running iOS and cause an error. Any suggestion to a cross-platform method of doing this? – Jonas Borggren Nov 21 '14 at 15:04