S straybullet Member Licensed User Longtime User Dec 1, 2011 #1 I have included a file... mytext.txt I want to load in to web veiw, but webview says file://AssetsDir/mytext.txt was not found, there is not such file or directory. Here is a snippet of my code.... WebView1.Initialize("WebView1") activity.AddView(webview1,0dip, 0dip, 100%x, 100%y) url="file:///" & File.DirAssets&"/mytext.txt" What path should I be using, I thought File.DirAssets was the default path unless you specified otherwise? Thanks in advance
I have included a file... mytext.txt I want to load in to web veiw, but webview says file://AssetsDir/mytext.txt was not found, there is not such file or directory. Here is a snippet of my code.... WebView1.Initialize("WebView1") activity.AddView(webview1,0dip, 0dip, 100%x, 100%y) url="file:///" & File.DirAssets&"/mytext.txt" What path should I be using, I thought File.DirAssets was the default path unless you specified otherwise? Thanks in advance
A admac231 Active Member Licensed User Longtime User Dec 2, 2011 #2 File.DirAssets is for use in actual coding. For a webview use file:///android_asset/mytext.txt. Theres an example here. Upvote 0
File.DirAssets is for use in actual coding. For a webview use file:///android_asset/mytext.txt. Theres an example here.