With this example you will learn how to close app when user click 2x to back button and how to ask user close app? and close app when user select yes

Gallery URL

ai2.appinventor.mit.edu/?galleryId=6603714991357952