Im in proccess of creating an Android application based on webview. The application loads html file from android assets into the webview.
I want to create a button the reload the webview I tried to do that using javascript:
location.reload();
But im getting a toast like error message that says me that this file is not exits. I wanted to try to do it with java inside my javascript interface class but I cant find way to access the webview object that is in the MainActivity.
I'd appreciate your help people!.
window.location.hreffrom javascript.