tufanv Expert Licensed User Longtime User Feb 2, 2021 #1 Hello, I have a problem. When I load a different activity which orientation is landscape, sometime the activity is not loaded and activity resume is triggered but sometimes not. I get these lines in the log : B4X: Copy ** Activity (main) Pause, UserClosed = false ** ** Activity (grafikdetay) Create, isFirst = true ** ** Activity (grafikdetay) Resume ** ** Activity (grafikdetay) Pause, UserClosed = false ** ** Activity (main) Resume ** As you can see activty grafikdetay is created rsume and paused and main activity is loaded again while changing the orientation. It happens maybe 1 of 5 try. Any idea ?
Hello, I have a problem. When I load a different activity which orientation is landscape, sometime the activity is not loaded and activity resume is triggered but sometimes not. I get these lines in the log : B4X: Copy ** Activity (main) Pause, UserClosed = false ** ** Activity (grafikdetay) Create, isFirst = true ** ** Activity (grafikdetay) Resume ** ** Activity (grafikdetay) Pause, UserClosed = false ** ** Activity (main) Resume ** As you can see activty grafikdetay is created rsume and paused and main activity is loaded again while changing the orientation. It happens maybe 1 of 5 try. Any idea ?
Erel B4X founder Staff member Licensed User Longtime User Feb 2, 2021 #2 Are you able to reproduce it with a simple project with two activities? Upvote 0
tufanv Expert Licensed User Longtime User Feb 2, 2021 #3 I am not able to reproduce it with a clean project but I found out that, when admob interstitial ad is loaded in the background without showing, second activity is pausing and turning back to main activity. With unfiltered logs I can see a message saying stg like : Message Quoue : Admob Interstitial and also a message like : JS: A parser-blocking, cross site (i.e. different eTLD+1) script, https://pagead2.googlesyndication.com/pagead/js/r20.... Upvote 0
I am not able to reproduce it with a clean project but I found out that, when admob interstitial ad is loaded in the background without showing, second activity is pausing and turning back to main activity. With unfiltered logs I can see a message saying stg like : Message Quoue : Admob Interstitial and also a message like : JS: A parser-blocking, cross site (i.e. different eTLD+1) script, https://pagead2.googlesyndication.com/pagead/js/r20....
Erel B4X founder Staff member Licensed User Longtime User Feb 3, 2021 #4 tufanv said: but I found out that, when admob interstitial ad is loaded in the background without showing, second activity is pausing and turning back to main activity Click to expand... How is it related to the activity orientation? Upvote 0
tufanv said: but I found out that, when admob interstitial ad is loaded in the background without showing, second activity is pausing and turning back to main activity Click to expand... How is it related to the activity orientation?
tufanv Expert Licensed User Longtime User Feb 3, 2021 #5 Erel said: How is it related to the activity orientation? Click to expand... It is not related to orientation, you are right. First I tought that it was because of orientation change, but I tested it now with protrait mode on the second activity, same thing happens when an interstitial ad_recieved triggered. Upvote 0
Erel said: How is it related to the activity orientation? Click to expand... It is not related to orientation, you are right. First I tought that it was because of orientation change, but I tested it now with protrait mode on the second activity, same thing happens when an interstitial ad_recieved triggered.
Erel B4X founder Staff member Licensed User Longtime User Feb 4, 2021 #6 Best solution, as usual, is to switch to B4XPages. Check whether you have CallSubDelayed in the event code. It will cause the target activity to start. Upvote 0
Best solution, as usual, is to switch to B4XPages. Check whether you have CallSubDelayed in the event code. It will cause the target activity to start.