R Ramezanpour Active Member Licensed User Longtime User Jan 9, 2015 #1 Hi, i want to load a local html file in webview how can i do ?
E Eumel Active Member Licensed User Longtime User Jan 9, 2015 #2 Open the files tab in your IDE, select "Add Files", and choose your html file. B4X: Dim WebView1 as WebView WebView1.LoadUrl("file://" & File.Combine(File.DirAssets, "yourhtmlfilename")) Upvote 0
Open the files tab in your IDE, select "Add Files", and choose your html file. B4X: Dim WebView1 as WebView WebView1.LoadUrl("file://" & File.Combine(File.DirAssets, "yourhtmlfilename"))
R Ramezanpour Active Member Licensed User Longtime User Jan 9, 2015 #3 Eumel said: Open the files tab in your IDE, select tnx"Add Files", and choose your html file. B4X: Dim WebView1 as WebView WebView1.LoadUrl("file://" & File.Combine(File.DirAssets, "yourhtmlfilename")) Click to expand... tnx i load... but images and css files dont work and dont show . I copied the css files and images Upvote 0
Eumel said: Open the files tab in your IDE, select tnx"Add Files", and choose your html file. B4X: Dim WebView1 as WebView WebView1.LoadUrl("file://" & File.Combine(File.DirAssets, "yourhtmlfilename")) Click to expand... tnx i load... but images and css files dont work and dont show . I copied the css files and images
wineos Member Licensed User Longtime User Jan 11, 2015 #5 If I am right, you should also change the images and css file paths to "file://.......". Is there any experts can help? Upvote 0
If I am right, you should also change the images and css file paths to "file://.......". Is there any experts can help?
Erel B4X founder Staff member Licensed User Longtime User Jan 11, 2015 #6 The other files should be in the Files folder as well. If it doesn't work for you then please upload your project. Upvote 0
The other files should be in the Files folder as well. If it doesn't work for you then please upload your project.
R Ramezanpour Active Member Licensed User Longtime User Jan 12, 2015 #7 Erel said: The other files should be in the Files folder as well. If it doesn't work for you then please upload your project. Click to expand... dont work ! Attachments jjj.zip 344.5 KB · Views: 248 Upvote 0
Erel said: The other files should be in the Files folder as well. If it doesn't work for you then please upload your project. Click to expand... dont work !
Erel B4X founder Staff member Licensed User Longtime User Jan 12, 2015 #8 The files should appear in the Files tab. Subfolders are currently not supported. Upvote 0