How i can close/exit button on my app?

前端 未结 6 1681
慢半拍i
慢半拍i 2021-01-23 20:45

i have a button to close my app with this code:

finish();

the problem is that this button doesn\'t exit of my app... it simply closes the current intent ant retu

6条回答
  •  心在旅途
    2021-01-23 21:31

    I recommend you read this: http://blog.radioactiveyak.com/2010/05/when-to-include-exit-button-in-android.html

    Chances are, you don't want an exit button. Perhaps a logout button, but that's it.

提交回复
热议问题