Application.Terminate lazarus / 43-Android ---------------------------------------------------------------------- juank1971 · 2020-09-19 15:16 Sorry for so many questions I need Application.Terminate In lamw. How terminate app by code I try with gApp.terminate.  and nothing happens ---------------------------------------------------------------------- jmpessoa · 2020-09-19 17:19 Quote try with gApp.terminate.  and nothing happens ... so is Android .. ---------------------------------------------------------------------- juank1971 · 2020-09-19 18:54 Yes in android ---------------------------------------------------------------------- jmpessoa · 2020-09-19 21:08 things work differently on the android system ... you don't "terminate" an application  [only the system can terminate the app...] ---------------------------------------------------------------------- juank1971 · 2020-09-19 21:51 When the user wants to exit the application, I use a jcustomdialog ask if he really wants to exit. If the user press buton cancel , i close   jcustomdialog   but if the user press acept button, then I must finish.  other languages ​​I have used application.terminate Or other idea for exit whit ask the user if want ---------------------------------------------------------------------- jmpessoa · 2020-09-20 00:44 Quotebut if the user press acept button, then I must finish. thy the "Self.Close" ---------------------------------------------------------------------- Manlio · 2020-11-19 15:43 Also Self.Minimize() has a similar behaviour. ---------------------------------------------------------------------- Segator · 2020-11-20 01:16 Self.minimize is like press the home button.