long period of inactivity after closing application

ThePuiu

Active Member
Licensed User
Longtime User
I wrote an application that the main activity through three buttons open additional 3 secondary activities. Each of these contains a relatively large number of images (not very large in size but many in number). To opening activities I do:
B4X:
StartActivity(CompX)
but to go back to the main activity use the Back button. The application works fine on the phone, the problem occurs only when the main activity button for closing the application is pressed. The application closes but the phone does not respond to commands about 5-10 seconds, then recovers. Home key is only functional. If you press it, the phone is back to normal quickly.
My question is: is this approach correct (without closing programmaticaly secactivity)? It releases memory to pressing the Back? I chose not to use a button closure for reasons of design...
If you need further details are available! Thank you!
 

ThePuiu

Active Member
Licensed User
Longtime User
now it's working like a charm!
In rest, its ok to leave an activity without a close?
Thank you!
 
Upvote 0
Top