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
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 :D)

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
    121.png
    17.7 KB · Views: 145
Upvote 0

mangojack

Well-Known Member
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
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) !!!


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: 171
Upvote 0
Top