Skip to content
Advertisement

How to save last visited url in android webview? [closed]

So im writing a very simple web-view app that shows certain types of users a web-page that I get from Firebase Realtime Database. Everything works just fine but upon closing an app, user gets sent back to the original “starting point” page. I heard you have to use SharedPreferences to solve a problem but how can I tie it up with firebase so everything would work fine? Attaching the code

JavaScript

Advertisement

Answer

Use this code :

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement