Hello,
I have attached here an example for showing this behavior that if the App gets Paused and Resumed the Screen freezes but the App code itself is running well.
This comes after the App is set to Paused and Resumed by pressing the button. After the 4th time (in this example) the run starts and the screen freezes.
Example attached, XUI2D library version.
Only the Button and its Click-Event is added to the example.
I have attached here an example for showing this behavior that if the App gets Paused and Resumed the Screen freezes but the App code itself is running well.
This comes after the App is set to Paused and Resumed by pressing the button. After the 4th time (in this example) the run starts and the screen freezes.
Example attached, XUI2D library version.
Only the Button and its Click-Event is added to the example.
B4X:
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Skipping tile set: images
Skipping tile set: chain
Type should be set to x2 ()
Loading objecttypes.json v0.98
TileMap: AABB: AABB[(0.0,0.0) . (18.6662,14.0)], Map Pixels (X) per Meter: 68.57, Map Pixels (Y) per Meter: 68.57
New graphic: ground.png_23.13x0.91
New graphic: tank0.png_2.92x1.71tank1.pngtank2.pngtank3.png
New graphic: kane.png_1.79x0.35
New graphic: box1.png_1.22x1.19
New graphic: blue_donut_7.png_0.47x0.47
*** MainLoop starting. ResumableIndex = 1
** Activity (main) Resume **
Deleting body: bullet, 20
Deleting body: bullet, 20
Deleting body: bullet, 20
Deleting body: bullet, 20
Deleting body: bullet, 20
Button pressed.
Deleting body: bullet, 20
Exiting for External
** Activity (main) Pause, UserClosed = false **
Sleep not resumed (context is paused): b4a.example.tank.x2utils$ResumableSub_MainLoop
** Activity (main) Resume **
*** MainLoop starting. ResumableIndex = 3
Deleting body: bullet, 20
Deleting body: bullet, 20
Deleting body: bullet, 20
Deleting body: bullet, 20
Deleting body: bullet, 20
Button pressed.
Exiting for External
** Activity (main) Pause, UserClosed = false **
Sleep not resumed (context is paused): b4a.example.tank.x2utils$ResumableSub_MainLoop
** Activity (main) Resume **
*** MainLoop starting. ResumableIndex = 5
Deleting body: bullet, 20
Deleting body: bullet, 20
Deleting body: bullet, 20
Deleting body: bullet, 20
Deleting body: bullet, 20
Deleting body: bullet, 20
Deleting body: bullet, 20
Deleting body: bullet, 20
Button pressed.
Exiting for External
** Activity (main) Pause, UserClosed = false **
Sleep not resumed (context is paused): b4a.example.tank.x2utils$ResumableSub_MainLoop
** Activity (main) Resume **
*** MainLoop starting. ResumableIndex = 7
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
Deleting body: bullet, 20
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
Deleting body: bullet, 20
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
Deleting body: bullet, 20
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
Deleting body: bullet, 20
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
Deleting body: bullet, 20
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
Deleting body: bullet, 20
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
Button pressed.
skipping frame!!!
skipping frame!!!
Deleting body: bullet, 20
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
Exiting for External
** Activity (main) Pause, UserClosed = false **
Sleep not resumed (context is paused): b4a.example.tank.x2utils$ResumableSub_MainLoop
** Activity (main) Resume **
*** MainLoop starting. ResumableIndex = 9
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
Deleting body: bullet, 20
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
Deleting body: bullet, 20
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
Deleting body: bullet, 20
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
skipping frame!!!
** Activity (main) Pause, UserClosed = true **
Sleep not resumed (context is paused): b4a.example.tank.x2utils$ResumableSub_MainLoop
Attachments
Last edited: