HTMLviewer

SoyEli

Active Member
Licensed User
Longtime User
Hello :)

I have been looking for a sample on howto:
Open a text file in the sd card with "HTMLviewer"


Thank you for your help
 

SoyEli

Active Member
Licensed User
Longtime User
Thank you for your reply:

it is a text.txt file not a .html
I tried what you said and it does not do anything.
I can go in with file manager and select the file and open with HTMLviewer
an it opens ok.

Thank you again :)
 
Last edited:
Upvote 0

SoyEli

Active Member
Licensed User
Longtime User
Any ideas ?
of howto open a txt file with HTMLviewer ?
The HTMLviewer is in my phone, with code how can I Open it ?

THANK YOU :)
 
Upvote 0

kickaha

Well-Known Member
Licensed User
Longtime User
This line works in one of my apps
B4X:
WebViewHelp.LoadUrl ("file://"&File.Combine (savedir, "summary.txt"))
savedir is just File.DirRootExternal.

Are you sure the file is where you think it is?
 
Upvote 0

SoyEli

Active Member
Licensed User
Longtime User
Hello:

this is what I Have:

Dim ShowMe As WebView, TxT as string
Txt="FileName"
ShowMe.Initialize("ShowMe")
ShowMe.LoadUrl("file://" & File.Combine(File.DirRootExternal,"FirstFolder\SubFolder\"&Txt&".txt"))

Runs with NO errors, just does not do anything.
I am 100% I got the path correct.

Thank You :)
 
Upvote 0
Top