Hi all,
I am quite new to the forum but have already read a lot and, finally decided to jump into this nice B4A adventure.
I wanted to start with something simple : a webview with an animated gif
here is the code :
It is very simple...
I did put the file index.html into the bottom right IDE panel under the Files folder.
I did checked that they are really into the PC Files folder.
The compilation is OK, the activity launches but the webview displays an error when executing the
WebView1.LoadURL("file:///android_asset/index.html")
I attach the full project to this post.
Any idea please ?
BTW : I have a Nexus5 kitkat4.4.2. This device is not rooted but the disk is encrypted (security policy)
I am quite new to the forum but have already read a lot and, finally decided to jump into this nice B4A adventure.
I wanted to start with something simple : a webview with an animated gif
here is the code :
B4X:
'Activity module
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
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 WebView1 As WebView
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("1")
WebView1.LoadURL("file:///android_asset/index.html")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
It is very simple...
I did put the file index.html into the bottom right IDE panel under the Files folder.
I did checked that they are really into the PC Files folder.
The compilation is OK, the activity launches but the webview displays an error when executing the
WebView1.LoadURL("file:///android_asset/index.html")
I attach the full project to this post.
Any idea please ?
BTW : I have a Nexus5 kitkat4.4.2. This device is not rooted but the disk is encrypted (security policy)