0

I'm developing an Android app where I'm using a webview in an activity. after pressing on a button I destroy this activity to go to another one which contains unity player. How can I open a session on the webview, save the data when I navigate to the unity's activity and then get it back when I come back to the webview's activity?

1 Answers1

0

If website is creating session, you can use this to get session and save it to Shared Preferences. Otherwise you can keep track of page changes, and use SharedPreferences to save/retrieve latest page.

Community
  • 1
  • 1
Mohamed
  • 1,251
  • 3
  • 15
  • 36