Hello together,
now I have discovered the source of the error.
I open the Left_ Slidemenu, depending on the screen size in width.
I.e. it is first checked whether it is a landscape or portrait format, it is also checked
whether it is a small screen or a large screen.
With the following code:
And if I leave out all the checking mechanisms
i.e. if I only have to stand one line
for all screen formats, then the app will not crash.
Does anyone see my mistake?
PS: As mentioned above, the APP only crashes sporadically.
VG
Sinan
now I have discovered the source of the error.
I open the Left_ Slidemenu, depending on the screen size in width.
I.e. it is first checked whether it is a landscape or portrait format, it is also checked
whether it is a small screen or a large screen.
With the following code:
B4X:
' ####################### SLIDE MENUE #############################
' If Variablen.pScreenSize >= 4 And Variablen.pScreenSize <6 Then
' If (Variablen.GetOrientation = 0) Or (Variablen.GetOrientation = 2) Then
Drawer.Initialize(Me,"Drawer",Activity,70%x)
' else if (Variablen.GetOrientation = 1) Or (Variablen.GetOrientation = 3) Then
' Drawer.Initialize(Me,"Drawer",Activity,50%x)
' End If
'
' else if Variablen.pScreenSize >= 6 And Variablen.pScreenSize <10 Then
' If (Variablen.GetOrientation = 0) Or (Variablen.GetOrientation = 2) Then
' Drawer.Initialize(Me,"Drawer",Activity,50%x)
' else if (Variablen.GetOrientation = 1) Or (Variablen.GetOrientation = 3) Then
' Drawer.Initialize(Me,"Drawer",Activity,30%x)
' End If
' End If
And if I leave out all the checking mechanisms
i.e. if I only have to stand one line
B4X:
Drawer.Initialize(Me,"Drawer",Activity,70%x)
for all screen formats, then the app will not crash.
Does anyone see my mistake?
PS: As mentioned above, the APP only crashes sporadically.
VG
Sinan