title: how to close gracefully a kivy app on Android?
body: <p>I have a kivy app with this inside :</p>
  
  <pre><code>Button:
      text: "Close"
      on_release: app.stop()
  </code></pre>
  
  <p>This works well. But unfortunately, when the app is executed on Android, the app stops but not gracefully as an Android dialog box opens up saying that the app has been closed. And this is not the expected behavior of a normal ending.</p>
  
  <p>So my question : how to close gracefully a kivy app on Android in order to not see this annoying dialog box?</p>
  
  <p>Below is the output of logcat :</p>
  
  <pre><code>I/python  ( 4960): ANSWERS (on_stop in App) =  None
  I/python  ( 4960): screen names =  ['welcome']
  I/python  ( 4960): answers have been saved on disk
  I/python  ( 4960): closing the SQL connection...
  I/python  ( 4960): now returning True
  I/python  ( 4960): [INFO   ] [Base        ] Leaving application in progress...
  I/python  ( 4960): ANSWERS (on_stop in App) =  None
  I/python  ( 4960): screen names =  ['welcome']
  I/python  ( 4960): answers have been saved on disk
  I/python  ( 4960): closing the SQL connection...
  I/python  ( 4960): now returning True
  I/python  ( 4960): Python for android ended.
  </code></pre>
  
  <p>As you can see, the App.on_stop() method seems to have been called twice.</p>
  
  <p>Thanks for your ideas.</p>