Android Question Improper app shutdown

Scantech

Well-Known Member
Licensed User
Longtime User
This is not a big deal of an issue but im posting it. Create new b4xpage, compile it to phone (samsung s21 ultra). Now, go to all app section, not home screen and click on your app. Close your app and observe where it takes you to home screen instead of app section. Open up calculator and close it then you will see what im talking about. Issues probably on samsungs and started in API 33?
 
Last edited:

Scantech

Well-Known Member
Licensed User
Longtime User
B4X:
Sub B4XPage_CloseRequest As ResumableSub
     Sleep(200)
End Sub
Not recommended. Do not use. I added this B4XMainPage and it close down properly. It stayed in App Section.
 
Upvote 0

Brian Dean

Well-Known Member
Licensed User
Longtime User
When you say . . .
Close your app and observe where it takes you . . .
. . . do you mean "Close your app by pressing the Back key from the home screen."? If so then I am always put back to where I started - to the top level device screen if I started there, and to the Apps list if I opened the app from there. This is on a Pixel 4a. Same results for both B4XPages and activity-based apps.
 
Upvote 0
Top