I am trying to get current html page path from "asset" folder in cordova android app, when we changing the pages inside the cordova webview.
I am using only MainActivity
public class MainActivity extends CordovaActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
loadUrl(launchUrl);
}}
I searched and tried my level best to find the solution. But still now I cannot get the right solution. I am totally confused, Please suggest any solution for the followings,
- Any function available to detect cordova webview URL when page changed like public boolean shouldOverrideUrlLoading(WebView view, String url) { } method?
- Can we create WebViewClient for Cordova Webview?