java - Webview with JavaScript interface -
i building mobile application should interacted java javascript.
i found solution in link passing array of values android activity javascript in webview. problem when declare webview showing error
none of methods in added interface have been annotated @android.webkit.javascriptinterface; not visible in api 17
what should remove error? new core java. please suggest me , me solve problem.
from docs:
caution: if you've set targetsdkversion 17 or higher, must add @javascriptinterface annotation method want available web page code (the method must public). if not provide annotation, method not accessible web page when running on android 4.2 or higher.
please take here http://developer.android.com/guide/webapps/webview.html
Comments
Post a Comment