Hi Carloz,
Have you try to set WebView1.Visible = True by code?
I was having the error above, and by adding that line to the code it worked.
'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
Dim ImageView1 As ImageView
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("main")
WebView1.LoadUrl("http://www.dolarsi.com/cotizador/cotizador_verde_full.asp")
WebView1.Visible = True ' Without this line got error java.lang.IllegalArgumentException: width and height must be > 0
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub WebView1_PageFinished (Url As String)
Dim Bmp As Bitmap
Dim Out As OutputStream
Out = File.OpenOutput(File.DirRootExternal, "dolarsi.png", False)
WebView1.CaptureBitmap.WriteToStream(Out, 100, "PNG")
Out.Close
ImageView1.Bitmap = LoadBitmap(File.DirRootExternal, "dolarsi.png")
End Sub