how to navigate from one webpage to other hyperlinked webpage inside a webview in android?

212 views
0
Parul Mathur | 14 xp

I have created an app.In this I am loading a webpage (.html file) in a webview (.html file). Inside this webpage (.html file) there are 2 buttons both lead to differnt webpages (.html file). All the .html  files are stored in my android asset folder.The app is working fine in android version <26.but crashing with below exceptions in android version >24.

Exceptions :

android.os.FileUriExposedException

android.os.StrictMode.onFileUriExposed

please help!my app is on playstore and I have to resolve this error.

0
ravi8x | 258 xp

Try overriding the shouldOverrideUrlLoading() method.