D davidmd Member Licensed User Longtime User Dec 24, 2011 #1 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: Dec 24, 2011
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 .... ?
D davidmd Member Licensed User Longtime User Dec 24, 2011 #2 It seem AS Problem with honeycomb Tablet; Should we wait for ICS ? Last edited: Dec 24, 2011 Upvote 0
NJDude Expert Licensed User Longtime User Dec 24, 2011 #3 LoadUrl expects a well... URL (like www. test.com) if you want to load an HTML you have to use LoadHTML. Upvote 0
LoadUrl expects a well... URL (like www. test.com) if you want to load an HTML you have to use LoadHTML.
D davidmd Member Licensed User Longtime User Dec 24, 2011 #4 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
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 ?
L legion48 Member Licensed User Longtime User Dec 25, 2011 #5 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
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"))
D davidmd Member Licensed User Longtime User Dec 25, 2011 #6 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
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
Erel B4X founder Staff member Licensed User Longtime User Dec 25, 2011 #7 I tested it on Samsung Galaxy Tab (Android 3.1) and it works fine. If you want to load it from the SD Card you can copy the file by calling: Code: Copy File.Copy(File.DirAssets, "test.html", File.DirDefaultExternal, "test.html") Upvote 0
I tested it on Samsung Galaxy Tab (Android 3.1) and it works fine. If you want to load it from the SD Card you can copy the file by calling: Code: Copy File.Copy(File.DirAssets, "test.html", File.DirDefaultExternal, "test.html")
D davidmd Member Licensed User Longtime User Dec 25, 2011 #8 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
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 ...)
Erel B4X founder Staff member Licensed User Longtime User Dec 25, 2011 #9 It should be: Code: Copy WebView1.LoadUrl("File:///android_asset/test.html") Maybe there is a problem with referencing other images. I haven't tested it. Note that you can also copy it to the internal folder (File.DirInternal). Upvote 0
It should be: Code: Copy WebView1.LoadUrl("File:///android_asset/test.html") Maybe there is a problem with referencing other images. I haven't tested it. Note that you can also copy it to the internal folder (File.DirInternal).
D davidmd Member Licensed User Longtime User Dec 25, 2011 #10 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: Dec 25, 2011 Upvote 0
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 ??
Erel B4X founder Staff member Licensed User Longtime User Dec 25, 2011 #11 You will need to upload your project (or a subset of it). Upvote 0
D davidmd Member Licensed User Longtime User Dec 25, 2011 #12 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
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
D davidmd Member Licensed User Longtime User Dec 25, 2011 #13 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
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!!!
D davidmd Member Licensed User Longtime User Dec 26, 2011 #14 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
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 ?
Erel B4X founder Staff member Licensed User Longtime User Dec 26, 2011 #15 Can you upload your project with the html file (File - Export as zip)? I tested a simple html file and it worked properly. Upvote 0
Can you upload your project with the html file (File - Export as zip)? I tested a simple html file and it worked properly.
D davidmd Member Licensed User Longtime User Dec 26, 2011 #16 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: Dec 26, 2011 Upvote 0
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..
D davidmd Member Licensed User Longtime User Dec 26, 2011 #17 Image Of Error CHECK THIS INFO I GOT THE SAME ISSUE AND MESSAGE Upvote 0
D davidmd Member Licensed User Longtime User Dec 26, 2011 #18 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: Dec 27, 2011 Upvote 0
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!
Erel B4X founder Staff member Licensed User Longtime User Dec 27, 2011 #19 This line: Code: Copy WebView1.LoadUrl("File:///android_asset/read.html") Should be: Code: Copy WebView1.LoadUrl("file:///android_asset/read.html") Upvote 0
This line: Code: Copy WebView1.LoadUrl("File:///android_asset/read.html") Should be: Code: Copy WebView1.LoadUrl("file:///android_asset/read.html")
D davidmd Member Licensed User Longtime User Dec 27, 2011 #20 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
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