My app has a minimum API of 16, and I need to run some javascript on a web view. However, when I try to use
mWebView.evaluateJavascript("(function()...)");
I receive a compile error indicating that this feature is only available in API 19 and higher. How can I achieve the same functionality for APIs below 19? Currently, I have placed the above code inside an if statement for API 19 and above, but I'm unsure how to handle it for APIs below 19.
Thank you for any assistance provided.