Lazarus

Programming => Operating Systems => Android => Topic started by: juank1971 on September 19, 2020, 05:16:48 pm

Title: Application.Terminate
Post by: juank1971 on September 19, 2020, 05:16:48 pm

Sorry for so many questions

I need
Application.Terminate

In lamw. How terminate app by code

I try with gApp.terminate.  and nothing happens
Title: Re: Application.Terminate
Post by: jmpessoa on September 19, 2020, 07:19:46 pm
Quote
try with gApp.terminate.  and nothing happens ...

so is Android ..
Title: Re: Application.Terminate
Post by: juank1971 on September 19, 2020, 08:54:11 pm
Yes in android
Title: Re: Application.Terminate
Post by: jmpessoa on September 19, 2020, 11:08:39 pm


things work differently on the android system ...
you don't "terminate" an application  [only the system can terminate the app...]
Title: Re: Application.Terminate
Post by: juank1971 on September 19, 2020, 11:51:39 pm
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
Title: Re: Application.Terminate
Post by: jmpessoa on September 20, 2020, 02:44:40 am

Quote
but if the user press acept button, then I must finish.

thy the "Self.Close" 
Title: Re: Application.Terminate
Post by: Manlio on November 19, 2020, 04:43:13 pm
Also Self.Minimize() has a similar behaviour.
Title: Re: Application.Terminate
Post by: Segator on November 20, 2020, 02:16:23 am
Self.minimize is like press the home button.
TinyPortal © 2005-2018