My button close the app

I am creating an app that creates markers in google maps according to the coordinates sent, but when I click the submit button, the app restarts. can you help me?!

4 posts were merged into an existing topic: [Solved] Can I use a button to close an app?