3

In android, I have loaded Webview with assets directory html files and I want to modfiy these html file from java code. Any code to modify it? I am novice to WebView. Thanks in advance!

Updated

According to the following answers, we can't modify or update the files of assets folder.So, any other ways possible without using Internal or External Storage?

ZarNi Myo Sett Win
  • 1,353
  • 5
  • 15
  • 37
  • what do you mean by want to change html file? is it mean change some value on html page or something else ? if this is the case call the java script method from your java and through JavaScript change the the intended value – Mukesh Y. May 22 '17 at 11:38
  • you can call java script method as mention in link http://stackoverflow.com/questions/4325639/android-calling-javascript-functions-in-webview – Mukesh Y. May 22 '17 at 11:42
  • I mean is that I want to modify html file from asset directory and re-save it in that asset folder. Can it be? Thanks in advance! – ZarNi Myo Sett Win May 23 '17 at 02:09

1 Answers1

1

you cannot write to assets file, alternate you can store the file to the internal store after modifying and read from that place.

jessica
  • 1,700
  • 1
  • 11
  • 17