Android not killing activities from stack when memory is low

后端 未结 5 1475
旧时难觅i
旧时难觅i 2021-01-02 10:10

We\'ve been developing an application that has a drop down dashboard that allows the users to navigate throughout the app. The navigation is not very standard since this men

5条回答
  •  南方客
    南方客 (楼主)
    2021-01-02 10:13

    Calling finish() when you are starting the new activity will deallocate the one you are leaving. This will prevent you from accessing it with the back button, but it should keep memory down.

提交回复
热议问题