H HansDieter Member Licensed User Longtime User May 30, 2021 #1 My app has the Main activity and 7 other activites. The Main and 4 activties are to respectively to as expected. The other activities disappears if the device will be turned. The log shows that the Activity_Create and Activity_Resume subs from switch activity are triggered even the app disappears. Click on the app starts at the Main and the data is at the point when the app has disappears. Any idee what's wrong? Thanks, Hans
My app has the Main activity and 7 other activites. The Main and 4 activties are to respectively to as expected. The other activities disappears if the device will be turned. The log shows that the Activity_Create and Activity_Resume subs from switch activity are triggered even the app disappears. Click on the app starts at the Main and the data is at the point when the app has disappears. Any idee what's wrong? Thanks, Hans
Andrew (Digitwell) Well-Known Member Licensed User Longtime User May 30, 2021 #2 Not sure I understand your description. Do you have a sample program? How is this related to switching portrait / landscape? Upvote 0
Not sure I understand your description. Do you have a sample program? How is this related to switching portrait / landscape?
H HansDieter Member Licensed User Longtime User Jun 1, 2021 #3 I try to do better: The device shows app. I turn the device from landscape to portait (or from portrait to landscape) the activity switch respectivly and the display will rebuilds be the Activity_Create and Activity_Resume subs. As it should be. Some of the activities are different. When i turn the device the app close. The log shows that the closed activity has triggered the Activity_Create and Activity_Resume subs even the app disappears. When i reopen my app, the Main Activity shows and all data are still here. Turning the device needs is to reopen the all and navigate to the correct activity. Thanks Hans Upvote 0
I try to do better: The device shows app. I turn the device from landscape to portait (or from portrait to landscape) the activity switch respectivly and the display will rebuilds be the Activity_Create and Activity_Resume subs. As it should be. Some of the activities are different. When i turn the device the app close. The log shows that the closed activity has triggered the Activity_Create and Activity_Resume subs even the app disappears. When i reopen my app, the Main Activity shows and all data are still here. Turning the device needs is to reopen the all and navigate to the correct activity. Thanks Hans
josejad Expert Licensed User Longtime User Jun 1, 2021 #4 Can you show the logs? Can you show the code in Activity_Create and Activity_Resume subs? What data is still there: edit text, table, ...? Give us more info or even better, upload a small project showing your issue. Upvote 0
Can you show the logs? Can you show the code in Activity_Create and Activity_Resume subs? What data is still there: edit text, table, ...? Give us more info or even better, upload a small project showing your issue.
H HansDieter Member Licensed User Longtime User Jun 1, 2021 #5 It works now ! José said ... What data is still there: edit text, table, ...? Click to expand... An other time i checked the Activity_Create and Activity_Resume subs. And i found something: I missed some SQL cursor.close and SQL.close. I added this and everything works now. Thanks Hans Upvote 0
It works now ! José said ... What data is still there: edit text, table, ...? Click to expand... An other time i checked the Activity_Create and Activity_Resume subs. And i found something: I missed some SQL cursor.close and SQL.close. I added this and everything works now. Thanks Hans