I have an html file in android app public directory that is loaded into a webView
with loadData()
function. I did not place this html file in directory /android_assets
because the file needs to be written to at runtime: why cannot write to /android_assets at runtime
I need to write to the file at runtime by inserting some html snippet at a precise location in the file. My question is: How to write to file at some line? I have read that it may not be safe: Prepending to file in java