Android Question I need help to exit an application In B4XPages application

ptraian2

New Member
I made an B4XPages application which is working fine and i need to exit application (not running in background) when i click a button.
Please help me. I used this code in B4XMainPage:
B4X:
Sub Button7_Click
    Main.pw.ReleaseKeepAlive
    '    Activity.Finish
        ExitApplication
    
End Sub
and application is running in background like you see in log:
Logger connected to: 31001a734bec8500
--------- beginning of /dev/log/system--------- beginning of /dev/log/main~i:*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
 

ptraian2

New Member
Thanks, Erel. But for me this command " B4XPage.ClosePage(Me)" doesn't work (the application persist in background) . I don't want this thing. I want to go out completely.
 
Upvote 0
Top