How clear all forms and open a new one in Firemonkey?

  

Let’s suppose the user is navigating throughout an Android/iOS app and open the following forms:

Form A –> Form B –> Form C

In Form C he press a button to logout from the app. This should clear all the previous forms (including Form C) and open a new Form (Signin Form D).

So it would be something like that:

Form A –> Form B –> Form C –> Press Logout Button
Close Form A, B and C
Open Form D
Now if the user press the back button in Form D the app will be closed because there are no more forms in the task.

I tried to open Form D and close previous ones but it didn’t freed completely the previous forms. Anyway to achieve this for Android/iOS?

Comments are closed.