You cannot access javascript stored variables, you must do this through a function call. You should call it from javascript on the html page, for example:
TheNameOfYourInterface.setX('value');
TheNameOfYourInterface javascript, -
YourWebView.addJavascriptInterface(new MyJavaScriptInterface(),"TheNameOfYourInterface");
- , Java .