App not finishing if using menu to move to different page

Shay

Well-Known Member
Licensed User
Longtime User
Hi

I have pages, (using menu) I can click on other menus such as settings, help, exit,
when I go from main to settings, and click exit, it will go back to menu and not finish the app

any idea how to bypass this?
 

JesseW

Active Member
Licensed User
Longtime User
Consider using Activity.Finish in each activity in your app. If that doesn't work for your app, you can use the keyword ExitApplication, although it isn't recommended. You can read about it here Basic4android - Core
 
Upvote 0

Shay

Well-Known Member
Licensed User
Longtime User
I used the activity finish
(also both commands - did not help)
when I use the finish it finishes current module and going back to main module, or the module it was before
 
Upvote 0

Shay

Well-Known Member
Licensed User
Longtime User
it is working if, I am using both:
Activity.Finish
ExitApplication

and since I am using menu buttons, also activity.finish before moving modules
 
Upvote 0

Shay

Well-Known Member
Licensed User
Longtime User
I did that, and this still keeps the app in active apps
can see that still consuming cpu and ram

only both commands are releasing it correctly
 
Upvote 0
Top