How to close Android application?

后端 未结 22 1504
小蘑菇
小蘑菇 2020-11-22 07:17

I want to close my application, so that it no longer runs in the background.

How to do that? Is this good practice on Android platform?

If I rely on the \"ba

22条回答
  •  一整个雨季
    2020-11-22 07:50

    by calling finish(); in OnClick button or on menu

    case R.id.menu_settings:

          finish();
         return true;
    

提交回复
热议问题