I ivavilagu Member Licensed User Longtime User Aug 15, 2014 #1 When I press the sleep button on my phone, the activity_create is getting called (been False the FirstTime variable). Why is that happening? Is maybe because the orientation is locked?
When I press the sleep button on my phone, the activity_create is getting called (been False the FirstTime variable). Why is that happening? Is maybe because the orientation is locked?
Erel B4X founder Staff member Licensed User Longtime User Aug 15, 2014 #2 Can you post the logs? Is the orientation locked in landscape mode? Upvote 0
I ivavilagu Member Licensed User Longtime User Aug 15, 2014 #3 Yes, the orientation is locked in landscape mode ** Activity (main) Create, isFirst = true ** ** Activity (main) Resume ** ** Activity (main) Pause, UserClosed = false ** //Here I pressed the sleep mode button phone ** Activity (main) Create, isFirst = false ** ** Activity (main) Resume ** Click to expand... Upvote 0
Yes, the orientation is locked in landscape mode ** Activity (main) Create, isFirst = true ** ** Activity (main) Resume ** ** Activity (main) Pause, UserClosed = false ** //Here I pressed the sleep mode button phone ** Activity (main) Create, isFirst = false ** ** Activity (main) Resume ** Click to expand...
Erel B4X founder Staff member Licensed User Longtime User Aug 17, 2014 #4 This is a bug in Android (in v4.2 or 4.3 if I remember correctly). Upvote 0
I ivavilagu Member Licensed User Longtime User Aug 17, 2014 #5 Ok, I solved the problem adding the line SetActivityAttribute(Main, android:configChanges, "orientation|keyboardHidden|screenSize") Click to expand... to manifest editor. Upvote 0
Ok, I solved the problem adding the line SetActivityAttribute(Main, android:configChanges, "orientation|keyboardHidden|screenSize") Click to expand... to manifest editor.