Please Help : WebView issue on Honeycomb Tablet

davidmd

Member
Licensed User
Longtime User
It seem as the URL string :

WebView1.LoadUrl("File:///android_asset/test.html")
Does Not work in Honeycomb

The www.test.com
work Perfect

any Idea about android Asset .... ?
 
Last edited:

davidmd

Member
Licensed User
Longtime User
Honeycomb Problem WebView1.LoadUrl("File:///android_asset/read.html")

LoadHTML will load complet HTML string code.
i wish to load local file , html.
It is working perefct with previous OS , on 3.2 Emulator
But Not on the Real Tablet honeycomb.

Any Idea how to use it ?
 
Upvote 0

legion48

Member
Licensed User
Longtime User
I know it's not the using the assets folder, but this works on my Honeycomb Galaxy tab:

WebView1.LoadUrl(File.ReadString(File.DirDefaultExternal, "favone2.txt"))
 
Upvote 0

davidmd

Member
Licensed User
Longtime User
Thanks' I tried :
WebView1.LoadUrl(File.ReadString(File.DirDefaultExternal, "favone2.txt"))

The emulator Show Error message about Not finding the file..

In my Project , Where should i put the files ?
in my b4a directory
all files found in "files" directory.
Please Advise

Thanks!!


Jd
 
Upvote 0

davidmd

Member
Licensed User
Longtime User
Thanks EREL
So to load from android_assets

it should be :

WebView1.LoadUrl(File.DirAssets, "read.html")

?

( i can not copyt he HTML to External , it got dozens of photos ...)
 
Upvote 0

davidmd

Member
Licensed User
Longtime User
Thanks EREL.
I tried allreday :

WebView1.LoadUrl("File:///android_asset/test.html")

it does NOT work in honeycomb Tablet.


i tried to put:

WebView1.LoadUrl(File.ReadString(File.DirAssets, "drug.html"))

does not work too

any idea ??
 
Last edited:
Upvote 0

davidmd

Member
Licensed User
Longtime User
WebView1.LoadUrl(File.ReadString(File.DirAssets, "drug.html"))

Activity module
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim Timer1 As Timer

End Sub

Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.

Dim back As ImageView
Dim in As ImageView
Dim out As ImageView
Dim WebView1 As WebView
Dim inn As Boolean
Dim ProgressBar1 As ProgressBar
Dim n As Int
End Sub

Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("web2")
WebView1.LoadUrl(File.ReadString(File.DirAssets, "drug.html"))
ProgressDialogShow("Loading ")
Timer1.Initialize("Timer1", 500) ' 1000 = 1 second
Timer1.Enabled = True
Timer1.Interval=500

End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub
 
Upvote 0

davidmd

Member
Licensed User
Longtime User
WebView1.LoadUrl("File:///android_asset/read.html")

With :
WebView1.LoadUrl("File:///android_asset/read.html")

it is working PEREFECT

in android 2.2
emulator 3.1

BUT NOT in Real tablet 3.2
show me the url link with can not find error
but when i click the link , it open perefect
the webpage in real android 3.2
seem as load problem and not the location in honeycomb device.


THANKS!!!
 
Upvote 0

davidmd

Member
Licensed User
Longtime User
Please Advise ?

can not use in honeycomb tablet 3.2:

WebView1.LoadUrl(File.ReadString(File.DirAssets, "drug.html"))


and

WebView1.LoadUrl("File:///android_asset/read.html")


Any idea how ?
 
Upvote 0

davidmd

Member
Licensed User
Longtime User
OK , Sure , Thanks!

It is strange ,
in other android and emulator working perfect.
The Html is Text and photo No jS or flash etc...

the emulator can not show with this code:
WebView1.LoadUrl(File.ReadString(File.DirAssets, "drug.html"))

Strange..
 
Last edited:
Upvote 0

davidmd

Member
Licensed User
Longtime User
To EREL : ATTACHED THE PROJ

Hi

dear EREL attached the proj as zip.

include both method of LoadURL


i will appreciate solution for Honeycomb 3.1

i know in Emulator ,. 1 work perefect
the other Not.

PLEASE HELP !!!

Appreciate your time and kindness.

REGARDS!
 
Last edited:
Upvote 0

davidmd

Member
Licensed User
Longtime User
Erel You Are The Great One

THANKS !!!

Will try it..

Really appreciate your kindness and your superb service,

It is my pleasure to be your customer..

Best Regards!

JOHNATAN
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…