Sub Activity_Create(FirstTime As Boolean)
'Initialize the pages and add them to the layout object
layout.Initialize
For i = 0 To panels.Length - 1
panels(i).Initialize("")
' panels(i).LoadLayout("WebViewTest.bal")
WebViews(i).Initialize("WebView1")
panels(i).AddView(WebViews(i),0,0,800,1000)
WebViews(i).LoadURL("file:///android_asset/baby671.htm")
' WebViews(i).SetLayout(0, 0, 800, 1000)
'WebView1.LoadURL("file:///android_asset/baby671.htm")
layout.AddPage(panels(i),"Page " & i)
Next
pager.Initialize(layout, "")
Activity.AddView(pager, 0, 40dip, Activity.Width, Activity.Height-48dip-40dip)
End Sub