I am writing an Android app using Python and SL4A. The app uses a webview that I wish to refresh. I plan on doing this by utilising javascript location.replace() within a wrapping doRefresh() javascript function. The problem I have is that I do not know how to call the javascript function from within my main event loop within the Python code.
Is there a way to directly call the method?
or
Is there a way to indirectly call the method say via a button's onClick and a mimic screen tap?
Thanks.