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:

LucaMs

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

ibra939

Active Member
Licensed User
Longtime User
no because i want create my own page can help the user
 
Upvote 0

ibra939

Active Member
Licensed User
Longtime User
thanks i will check it again o_O
 
Upvote 0

mangojack

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

ibra939

Active Member
Licensed User
Longtime User
Trying to do it ................:D
 
Upvote 0
Top