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 11, 2014 #2 Since you have not received a reply, I think I'm not the only one not to have understood the question. Upvote 0
Since you have not received a reply, I think I'm not the only one not to have understood the question.
ibra939 Active Member Licensed User Longtime User Sep 11, 2014 #3 LucaMs said: Since you have not received a reply, I think I'm not the only one not to have understood the question. Click to expand... I have bad English jest i want add https://www.facebook.com/ as webview can be used ? Upvote 0
LucaMs said: Since you have not received a reply, I think I'm not the only one not to have understood the question. Click to expand... I have bad English jest i want add https://www.facebook.com/ as webview can be used ?
LucaMs Expert Licensed User Longtime User Sep 11, 2014 #4 I guess you just do not want to open facebook on your device, in your app, because with webview you can open any site. For Facebook functionality you'll need libraries such as this one. (You're English is bad, mine too, so it is simple to communicate ) Upvote 0
I guess you just do not want to open facebook on your device, in your app, because with webview you can open any site. For Facebook functionality you'll need libraries such as this one. (You're English is bad, mine too, so it is simple to communicate )
ibra939 Active Member Licensed User Longtime User Sep 11, 2014 #5 LucaMs said: I guess you just do not want to open facebook on your device, in your app, because with webview you can open any site. For Facebook functionality you'll need libraries such as this one. (You're English is bad, mine too, so it is simple to communicate ) Click to expand... hahah yes too bad ....... so Example : I create Layout then i add webview ..... Coding: i want add Html code to webviewto open or to read me Html <!DOCTYPE html> <html> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html> can be ??? Upvote 0
LucaMs said: I guess you just do not want to open facebook on your device, in your app, because with webview you can open any site. For Facebook functionality you'll need libraries such as this one. (You're English is bad, mine too, so it is simple to communicate ) Click to expand... hahah yes too bad ....... so Example : I create Layout then i add webview ..... Coding: i want add Html code to webviewto open or to read me Html <!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 11, 2014 #6 http://www.b4x.com/android/forum/threads/webview-tutorial.24343/page-2#post-237363 Upvote 0
KMatle Expert Licensed User Longtime User Sep 11, 2014 #7 See here: http://www.b4x.com/android/forum/threads/loading-html-file-into-webview.15203/ Create your html and save it into a file. Then call it with B4X: WebView1.LoadUrl("file:///android_asset/testfile.html") Upvote 0
See here: http://www.b4x.com/android/forum/threads/loading-html-file-into-webview.15203/ Create your html and save it into a file. Then call it with B4X: WebView1.LoadUrl("file:///android_asset/testfile.html")
ibra939 Active Member Licensed User Longtime User Sep 11, 2014 #8 Klaus Matle said: See here: http://www.b4x.com/android/forum/threads/loading-html-file-into-webview.15203/ Create your html and save it into a file. Then call it with B4X: WebView1.LoadUrl("file:///android_asset/testfile.html") Click to expand... Thanks for your help showing mssage ( this file "testfile.html" is not used ) warring #15 Upvote 0
Klaus Matle said: See here: http://www.b4x.com/android/forum/threads/loading-html-file-into-webview.15203/ Create your html and save it into a file. Then call it with B4X: WebView1.LoadUrl("file:///android_asset/testfile.html") Click to expand... Thanks for your help showing mssage ( this file "testfile.html" is not used ) warring #15
KMatle Expert Licensed User Longtime User Sep 11, 2014 #9 Of course you have to change the name & path. It's just an example. Upvote 0
ibra939 Active Member Licensed User Longtime User Sep 11, 2014 #10 why i change it of course Sub WebView1_PageFinished (Url As String) WebView1.LoadUrl("file:///android_asset/exampl.html") End Sub Upvote 0
why i change it of course Sub WebView1_PageFinished (Url As String) WebView1.LoadUrl("file:///android_asset/exampl.html") End Sub
ibra939 Active Member Licensed User Longtime User Sep 11, 2014 #11 I use websit is working fine but Sub WebView1_PageFinished (Url As String) WebView1.LoadUrl("file:///android_asset/exampl.html") End Sub i put exampl.html in files folder not showing or reader con't display Upvote 0
I use websit is working fine but Sub WebView1_PageFinished (Url As String) WebView1.LoadUrl("file:///android_asset/exampl.html") End Sub i put exampl.html in files folder not showing or reader con't display
ibra939 Active Member Licensed User Longtime User Sep 11, 2014 #12 attched the problem image Attachments 121.png 17.7 KB · Views: 166 Upvote 0
LucaMs Expert Licensed User Longtime User Sep 12, 2014 #13 The name of the file seems to be ".html". Where did you save it? Upvote 0
mangojack Expert Licensed User Longtime User Sep 12, 2014 #14 1. File exampl.html is added in Files tab ... 'Assets' B4X: WebView1.LoadUrl("file:///android_asset/exampl.html") '###### exampl.html OR example.html. 2. Make sure you Debug(legacy) NOT Debug (rapid) !!! Upvote 0
1. File exampl.html is added in Files tab ... 'Assets' B4X: WebView1.LoadUrl("file:///android_asset/exampl.html") '###### exampl.html OR example.html. 2. Make sure you Debug(legacy) NOT Debug (rapid) !!!
Erel B4X founder Staff member Licensed User Longtime User Sep 12, 2014 #15 Make sure you Debug(legacy) NOT Debug (rapid) !!! Click to expand... You can use rapid debugger. You have two options: 1. Disable the virtual assets folder feature. 2. Use the code posted here: http://www.b4x.com/android/forum/th...g-rapid-”-b4a-3-50-version.38981/#post-230988 Upvote 0
Make sure you Debug(legacy) NOT Debug (rapid) !!! Click to expand... You can use rapid debugger. You have two options: 1. Disable the virtual assets folder feature. 2. Use the code posted here: http://www.b4x.com/android/forum/th...g-rapid-”-b4a-3-50-version.38981/#post-230988
ibra939 Active Member Licensed User Longtime User Sep 12, 2014 #16 LucaMs said: View attachment 27613 The name of the file seems to be ".html". Where did you save it? Click to expand... i save it at folder in-said Files the name example1.html Upvote 0
LucaMs said: View attachment 27613 The name of the file seems to be ".html". Where did you save it? Click to expand... i save it at folder in-said Files the name example1.html
ibra939 Active Member Licensed User Longtime User Sep 12, 2014 #17 mangojack said: 1. File exampl.html is added in Files tab ... 'Assets' B4X: WebView1.LoadUrl("file:///android_asset/exampl.html") '###### exampl.html OR example.html. 2. Make sure you Debug(legacy) NOT Debug (rapid) !!! Click to expand... i do Debug(legacy) but it's showing same problem (webpage not avaliable fil:///files/example.html ) Upvote 0
mangojack said: 1. File exampl.html is added in Files tab ... 'Assets' B4X: WebView1.LoadUrl("file:///android_asset/exampl.html") '###### exampl.html OR example.html. 2. Make sure you Debug(legacy) NOT Debug (rapid) !!! Click to expand... i do Debug(legacy) but it's showing same problem (webpage not avaliable fil:///files/example.html )
ibra939 Active Member Licensed User Longtime User Sep 12, 2014 #18 Erel said: You can use rapid debugger. You have two options: 1. Disable the virtual assets folder feature. 2. Use the code posted here: http://www.b4x.com/android/forum/threads/images-loaded-in-webviews-are-not-displayed-in-mode-“debug-rapid-”-b4a-3-50-version.38981/#post-230988 Click to expand... really i try that example but the picture not showing also error webpage not avaliable Upvote 0
Erel said: You can use rapid debugger. You have two options: 1. Disable the virtual assets folder feature. 2. Use the code posted here: http://www.b4x.com/android/forum/threads/images-loaded-in-webviews-are-not-displayed-in-mode-“debug-rapid-”-b4a-3-50-version.38981/#post-230988 Click to expand... really i try that example but the picture not showing also error webpage not avaliable
LucaMs Expert Licensed User Longtime User Sep 12, 2014 #19 You should post your project (use "Export as Zip" from menu File then the button "Upload a File" here). Upvote 0
You should post your project (use "Export as Zip" from menu File then the button "Upload a File" here).
ibra939 Active Member Licensed User Longtime User Sep 12, 2014 #20 this the file Attachments exampleHtml.zip 40.7 KB · Views: 188 Upvote 0