Android Question WebView return Null

AndroidUserCCS

Member
Licensed User
Longtime User
Hi,I am using the next code

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:
WebView1.Initialize("WebView1_Click")
Activity.LoadLayout("WebView")
WebView1.LoadURL("https://www.orusjobs.com")
End Sub


When I navigate to the url https://www.orusjobs.com/login I receive a null value.

Can gave me some tips to handle this?

Thanks
 

NJDude

Expert
Licensed User
Longtime User
Are you creating your layouts with the designer? if you are, you don't need to initialize the views, but if you are not, then you have to Initialize and add the view to the activity, I would recommend you read the Beginner's Guide for more details.

Links to the documentation can be found in my signature below.
 
Upvote 0

AndroidUserCCS

Member
Licensed User
Longtime User
Hi, thanks for your reply, I remove the WebView1.Initialize("WebView1_Click") but doesnt work I can load the www.orusjobs.com without problems but when I click login I get null.
 
Upvote 0

AndroidUserCCS

Member
Licensed User
Longtime User
and how can I to handle this? exist any other alternative to use?
 
Upvote 0
Top