D
Deleted member 103
Guest
Hi,
i have this firebase error.
Where could my fault be, if there is any fault at all?
Here is my B4a code:
i have this firebase error.
Where could my fault be, if there is any fault at all?
Device: HUAWEI P20 lite
Marke: Android
Modell: S10+
Ausrichtung: Hochformat
Freier RAM: 262.3 MB
Freier Festplattenspeicher: 10.99 GB
Betriebssystem
Version: 9.1
Ausrichtung: Hochformat
Rooting durchgeführt: Nein
Absturz
Datum: 06.02.2020, 19:44:58
App-Version: 4.26.1 (62)
Fatal Exception: java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (WebView).
Did you forget to call Activity.LoadLayout?
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:170)
at anywheresoftware.b4a.objects.PanelWrapper.LoadLayout(PanelWrapper.java:134)
at fg.speedpilot_lite.main$ResumableSub_ShowPrivacyPolicy.resume(main.java:3654)
at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:250)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:190)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:180)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:176)
at anywheresoftware.b4a.agraham.dialogs.InputDialog$ExtendedBALayout$1.run(InputDialog.java:2467)
at android.os.Handler.handleCallback(Handler.java:815)
at android.os.Handler.dispatchMessage(Handler.java:104)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5631)
at java.lang.reflect.Method.invoke(Method.java)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:959)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:754)
Here is my B4a code:
B4X:
Sub Activity_Resume
...
If Not(Starter.manager.getBoolean("IsPrivacyPolicyAllowed")) Then
CallSubDelayed(Me, "ShowPrivacyPolicy")
End If
...
End Sub
Private Sub ShowPrivacyPolicy
Dim dialog As CustomLayoutDialog
Dim sf As Object = dialog.ShowAsync("", "OK", "", "",Null, False)
Wait For (sf) Dialog_Ready (DialogPanel As Panel)
DialogPanel.LoadLayout("frmprivacypolicy")
'View beschriften
wbvPrivacyPolicy.LoadHtml(File.GetText(File.DirAssets, Starter.Language.Value("Datenschutzfile")))
cbxPrivacyPolicy.Text = Starter.Language.Value("PolicyAllowed")
cbxPrivacyPolicy.Checked = Starter.manager.getBoolean("IsPrivacyPolicyAllowed")
mAllg.SetCBDrawable2FromFont(cbxPrivacyPolicy, Chr(0xF096), Chr(0xF046), 24 / mAllg.Fontscale, Colors.DarkGray)
mAllg.SetFontsizePanel(DialogPanel)
Wait For (sf) Dialog_Result (Result As Int)
Starter.manager.setBoolean("IsPrivacyPolicyAllowed", cbxPrivacyPolicy.Checked)
If Not(cbxPrivacyPolicy.Checked) Then
Activity.Finish
End If
End Sub