Hi,
I have a "itinerary.html" file which is Assets/Content folder inside the Droid project. My problem is that I cannot find a proper way of writing that file and then be able to access that file in order to be used as a URI for an WebView page.
I will attach part of my code here:
public Itinerary(string htmlBody) { string fileName = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "itinerary.html"); File.WriteAllText(fileName, htmlBody); MyWebView.Uri = "itinerary.html"; }
in the first 2 lines from this constructor I am trying to overwrite what is in "itinerary.html" file and then I assign that file to the URI (The file exist in the folder) but when the WebView is trying to show that page it will show an empty page because the content has not been actually overwritten.
Does anybody has encountered this problem ?
Thanks