ibra939 Active Member Licensed User Longtime User Sep 11, 2014 #1 I want create layout with HTML Reading code as showing ? Example : I create Layout then i add webview ..... Coding i want add Html code to webview <!DOCTYPE html> <html> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html> can be ??? Last edited: Sep 11, 2014
I want create layout with HTML Reading code as showing ? Example : I create Layout then i add webview ..... Coding i want add Html code to webview <!DOCTYPE html> <html> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html> can be ???
LucaMs Expert Licensed User Longtime User Sep 12, 2014 #21 I can not run your project, but you should use: B4X: WebView1.LoadUrl(File.Combine(File.DirAssets, "Google.htm")) But do you want to simulate the google search page or allow users to search? For the second case, you should only open the page of Google Search in your webview passing its URL Upvote 0
I can not run your project, but you should use: B4X: WebView1.LoadUrl(File.Combine(File.DirAssets, "Google.htm")) But do you want to simulate the google search page or allow users to search? For the second case, you should only open the page of Google Search in your webview passing its URL
ibra939 Active Member Licensed User Longtime User Sep 12, 2014 #22 no because i want create my own page can help the user Upvote 0
LucaMs Expert Licensed User Longtime User Sep 12, 2014 #23 LucaMs said: I can not run your project, but you should use: B4X: WebView1.LoadUrl(File.Combine(File.DirAssets, "Google.htm")) Click to expand... Sorry, lowercase B4X: WebView1.LoadUrl(File.Combine(File.DirAssets, "google.htm")) Upvote 0
LucaMs said: I can not run your project, but you should use: B4X: WebView1.LoadUrl(File.Combine(File.DirAssets, "Google.htm")) Click to expand... Sorry, lowercase B4X: WebView1.LoadUrl(File.Combine(File.DirAssets, "google.htm"))
ibra939 Active Member Licensed User Longtime User Sep 12, 2014 #24 thanks i will check it again Upvote 0
mangojack Expert Licensed User Longtime User Sep 13, 2014 #25 Change B4X: WebView1.LoadUrl("File:///File/Google.htm") to this ... B4X: WebView1.LoadUrl("file:///android_asset/google.htm") Scroll webview to see the page properly. Sorry ... did not see Page2 posts .. Last edited: Sep 13, 2014 Upvote 0
Change B4X: WebView1.LoadUrl("File:///File/Google.htm") to this ... B4X: WebView1.LoadUrl("file:///android_asset/google.htm") Scroll webview to see the page properly. Sorry ... did not see Page2 posts ..
LucaMs Expert Licensed User Longtime User Sep 13, 2014 #26 mangojack said: Change B4X: WebView1.LoadUrl("File:///File/Google.htm") to this ... B4X: WebView1.LoadUrl("file:///android_asset/google.htm") Scroll webview to see the page properly. Sorry ... did not see Page2 posts .. Click to expand... Yes, but I forgot the string part: "file:///" Upvote 0
mangojack said: Change B4X: WebView1.LoadUrl("File:///File/Google.htm") to this ... B4X: WebView1.LoadUrl("file:///android_asset/google.htm") Scroll webview to see the page properly. Sorry ... did not see Page2 posts .. Click to expand... Yes, but I forgot the string part: "file:///"
ibra939 Active Member Licensed User Longtime User Sep 13, 2014 #27 Trying to do it ................ Upvote 0