Android Question b4a Webview issue

ftuz13

Member
Licensed User
Longtime User
Following is my code:

Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
MyOfficeWeb

End Sub

Sub MyOfficeWeb
Dim myw As WebView
myw.Initialize("myw")
Activity.AddView(myw, 0, 0, 100%x, 100%y) 'Your options for size here
myw.LoadUrl("http://k13.anewas.com/")
End Sub


When the phone orientation change from landscape to portrait it lost all the data.
 

tigrot

Well-Known Member
Licensed User
Longtime User
Reload all data with new screen format. If you entered data in web input form you will loose them...
As Erel pointed, you better disable orientation changes while in this activity. You will get better results in web pages.
 
Upvote 0
Top