Android Question Creating Html

ibra939

Active Member
Licensed User
Longtime User
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:

ibra939

Active Member
Licensed User
Longtime User

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

ibra939

Active Member
Licensed User
Longtime User
why i change it of course

Sub WebView1_PageFinished (Url As String)
WebView1.LoadUrl("file:///android_asset/exampl.html")
End Sub
 
Upvote 0

ibra939

Active Member
Licensed User
Longtime User
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

ibra939

Active Member
Licensed User
Longtime User
attched the problem image
 

Attachments

  • 121.png
    17.7 KB · Views: 166
Upvote 0

mangojack

Expert
Licensed User
Longtime User
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

ibra939

Active Member
Licensed User
Longtime User


i do Debug(legacy) but it's showing same problem (webpage not avaliable fil:///files/example.html )
 
Upvote 0

ibra939

Active Member
Licensed User
Longtime User
Upvote 0

ibra939

Active Member
Licensed User
Longtime User
this the file
 

Attachments

  • exampleHtml.zip
    40.7 KB · Views: 188
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…