B4J Question WebGadget dont works on RaspberryPi?

Waldemar Lima

Well-Known Member
Licensed User
hi everyone !
i am learning to create a software to RPI .
but Webgadget dont works ...

Screenshot Debug on RPI = http://prntscr.com/jc7r5c

Code below :
B4X:
#Region Project Attributes
    #MainFormWidth: 600
    #MainFormHeight: 600
#End Region

Sub Process_Globals
    Private fx As JFX
    Private MainForm As Form
    Public WebView1 As WebView
    Dim width As Double
    Dim height As Double
  
End Sub

Sub AppStart (Form1 As Form, Args() As String)
    MainForm = Form1
    MainForm.RootPane.LoadLayout("screen") 'Load the layout file.
  
    width = fx.PrimaryScreen.MaxX
    height = fx.PrimaryScreen.MaxY
    MainForm.SetFormStyle("UNDECORATED")
    MainForm.WindowLeft = 0
    MainForm.WindowTop = 0
    MainForm.WindowWidth= width
    MainForm.WindowHeight = height
    Log(width&" por "&height)
  
    WebView1.Initialize("WebView1")
    WebView1.LoadUrl("https://pt.wikipedia.org/wiki/Tumblr")
    MainForm.Show
  
  
End Sub

Sub WebView_PageFinished (Url As String)
  
End Sub

'Return true to allow the default exceptions handler to handle the uncaught exception.
Sub Application_Error (Error As Exception, StackTrace As String) As Boolean
    Return True
End Sub
 
Top