Where is the error message?When my last shown activity is not main then it will crash the app when I exit.
** Activity (dashboard) Pause, UserClosed = false ** 'Caused by Home button
Killing previous instance (main).
** Activity (main) Create, isFirst = false **
** Activity (main) Resume **
android.permission.WRITE_EXTERNAL_STORAGE true
android.permission.ACCESS_COARSE_LOCATION true
** Activity (main) Pause, UserClosed = true ** 'Caused by exiting app
No wakelock.
Sub mnuDisconnect
No wakelock.
Setting Manager Debug Log
*** Service (starter) Create ***
Using FileProvider? true
DKKD
DKJD
** Service (starter) Start **
** Activity (dashboard) Create, isFirst = true **
Panel size is unknown. Layout may not be loaded correctly.
-----------
-----------
Reusing DrawRoundedAnalogBackgroundandBorder
** Activity (dashboard) Resume **
ERROR ACTIVITY RESUME IN DASHBOARD
*** Service (comserial) Create ***
comserial_service_create (java line: 3025)
java.lang.NumberFormatException: empty String
at java.lang.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1071)
at java.lang.Double.parseDouble(Double.java:547)
at scantech.cardiagnosticpro.comserial._service_create(comserial.java:3025)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:196)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:176)
at scantech.cardiagnosticpro.comserial.onCreate(comserial.java:56)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:3162)
at android.app.ActivityThread.-wrap5(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1550)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)
notification.SetInfo("OBD2 Status", Body, "")
I have this in Dashboard Activity Resume (Starter.atPage is int)ERROR ACTIVITY RESUME IN DASHBOARD java.lang.RuntimeException: Object should first be initialized (AHViewPager).
and this is Dashboard Activity Create (8 panels are created)Pager.GotoPage(Starter.atPage, True)
By Exiting Dashboard Activity(Not UserClosed) using home button, entering Main Activity from Notification, User Exiting Main Activity will go to Dashboard Activity, where Dashboard was still active(Not UserClosed) by Home button and then it will Create Dashboard Activity (Why Create???) and Resume. I don't understand why it says Pager not initialized and why it Created Dashboard where it should of been Resume only? This is not a typical correct behavior? Is the Error because it created new instance and did not kill the old Dashboard instance?Pager.Initialize2(Container, "Pager")
As you can see no errors.** Activity (dashboard) Pause, UserClosed = false **
Killing previous instance (main).
** Activity (main) Create, isFirst = false **
** Activity (main) Resume **
android.permission.WRITE_EXTERNAL_STORAGE true
android.permission.ACCESS_COARSE_LOCATION true
** Activity (main) Pause, UserClosed = true **
No wakelock.
Sub mnuDisconnect
No wakelock.
Setting Manager Debug Log
** Service (comserial) Destroy **
** Service (communicationroutine) Destroy **
No partial wakelock.
** Activity (dashboard) Resume **
*** Service (comserial) Create ***
** Service (comserial) Start **
*** Service (communicationroutine) Create ***
** Service (communicationroutine) Start **