ArminKh1993
Active Member
Hi, It seems it's an issue in b4a v10.7
Sleep not resumed also on Activity_Resume
For example:
Look at the code above, Imagine phone screen is locked. Then run app with compile it by b4a and then unlock phone screen.
as you can see just Label 1 will be created and nothing will happen about Label 2 Also if Activity_Resume occured.
In other words, if the code reaches line 6(Sleep) while the phone screen is locked then this message will printed in log windows:Sleep not resumed (context is paused) and neither the code(Sleep) itself nor its subsequent lines are executed after the Activity_Resume.
Also activity_pause will break the code and subsequent lines will not executed after Activity_Resume.
This is new in b4a 10.7(exist in too old version of b4a too) because i'm working on a project for more than 8 months. and i see this problem in my splash screen when i upgrade b4a to v10.7. It's okay in b4a v10.6.
i think code should be resumed after "Sleep" if Activity_Resume occured.Some thing like CallSubDelayed
thanks
Sleep not resumed also on Activity_Resume
For example:
B4X:
Dim lbl As Label
lbl.initialize("")
Activity.AddView(lbl,100dip,100dip,100dip,100dip)
lbl.Text = "Label 1"
Sleep(5000)
Dim lbl2 As Label
lbl2.initialize("")
Activity.AddView(lbl2,100dip,300dip,100dip,100dip)
lbl2.Text = "Label 2"
Look at the code above, Imagine phone screen is locked. Then run app with compile it by b4a and then unlock phone screen.
as you can see just Label 1 will be created and nothing will happen about Label 2 Also if Activity_Resume occured.
In other words, if the code reaches line 6(Sleep) while the phone screen is locked then this message will printed in log windows:Sleep not resumed (context is paused) and neither the code(Sleep) itself nor its subsequent lines are executed after the Activity_Resume.
Also activity_pause will break the code and subsequent lines will not executed after Activity_Resume.
This is new in b4a 10.7(exist in too old version of b4a too) because i'm working on a project for more than 8 months. and i see this problem in my splash screen when i upgrade b4a to v10.7. It's okay in b4a v10.6.
i think code should be resumed after "Sleep" if Activity_Resume occured.Some thing like CallSubDelayed
thanks
Last edited: