I am trying to call a javascript function from my webview while giving it two strings. But one of the strings is always null. In my java code it isnt.
myWebView.loadUrl("javascript:Android.SelectTargetDirectory(\"" + fileName + "\", \"" + fileSizes + "\")");
That is what I am doing but with no success
Here the Javascript side:
selectTargetDirectory = function (fileName, fileSizes) {
$.ajax({
url: "/UploadFileProductsDialogController/ShowUploadDialog",
data: { fileName: fileName, fileSizes: fileSizes },
success: function (result) {
Controller.ProcessResponse(result);
},
error: function (error, response) {
alert(error);
}
);
};