I am getting the message box, so I know the button is working. But I can not get the webview on the emulator or phone. Tried the .Enable as well. I have a main layout open with my main code.
B4X:
Sub ShowPage_Click
Webline = "http://www.google.com"
Msgbox(Webline,"")
WebView1.BringToFront
Webview1.Visible=True
WebView1.LoadUrl(Webline)
End Sub
I am getting the message box, so I know the button is working. But I can not get the webview on the emulator or phone. Tried the .Enable as well. I have a main layout open with my main code.
B4X:
Sub ShowPage_Click
Webline = "http://www.google.com"
Msgbox(Webline,"")
WebView1.BringToFront
Webview1.Visible=True
WebView1.LoadUrl(Webline)
End Sub
Can not test it at home, B4A will ot run here, will test it when I return to work. Thanks for checking it. I did not get the main.bal, but no problem there.
So it did get rid of the button you had and pulled up google? Did you use back to return and all was good.
Can not test it at home, B4A will ot run here, will test it when I return to work. Thanks for checking it. I did not get the main.bal, but no problem there.
So it did get rid of the button you had and pulled up google? Did you use back to return and all was good.
I can see the main.bal in the zip attachment. It brought up google seconds after I hit the show button, and the return button brought in back to the emulator main screen as it should. Just tried it again, all seems fine.
Why aren't you adding the WebView with the designer?
If you want to add it programmatically then you also need to call Activity.AddView and add the WebView.
You should initialize the view only when FirstTime is true. Just remove this check. You should initialize it every time the activity is created.
Only process global objects should be initialized only when FirstTime is true.
Why aren't you adding the WebView with the designer?
If you want to add it programmatically then you also need to call Activity.AddView and add the WebView.
You should initialize the view only when FirstTime is true. Just remove this check. You should initialize it every time the activity is created.
Only process global objects should be initialized only when FirstTime is true.
You add it like any other view. Choose AddView - WebView. You should also choose Tools - Generate members and add the declaration for this object as you will need to reference it by code.
You add it like any other view. Choose AddView - WebView. You should also choose Tools - Generate members and add the declaration for this object as you will need to reference it by code.
So I can add another .bal and put a webview and generate the Dims? Can I load it in a panel at that point. I like the panels so I have to program but flip up the screens I want.