I would like to know if in android there is any way to load in the WebView
a different URL to the current one and that when going back, it would not go back to the first one, since I figure it will consume resources, and my website needs a lot to charge. I am using the .loadUrl(url);
method and I have tried to use .destroy();
anter, re-identify the WebView with findViewbyId
and then load the URL but the page is blank. I've also tried it with .clearHistory();
but it has not worked.
In other questions similar to this I have seen that they use .loadUrl("about:blank");
but I do not want only that the previous website is not visible, but that there are no more websites besides the new one.
Is there any other way to change the current URL to a new one without the previous one remaining?