read the newspaper wrong, it seems that your method does not define success. So showState is undefined.
if Webview interacts with android natively, you can try this way to define the method you need to expose in javascript
window ["showState"] = function (state,contId,conments) {.}