Release Memory of Particular Activity when it is Destroyed

前端 未结 7 1562
说谎
说谎 2020-12-15 05:38

I have a launcher Activity that load and resize big bitmap as it\'s background when it opens.

Whenever hit the back button, the Activity is

7条回答
  •  攒了一身酷
    2020-12-15 06:07

    Finishing an Activity doesn't clear its memory. It only removes the Activity from its stack, Android will clear its memory when it needs memory (garbage collection),if you face memory issue from drawable,

    • Reducing the drawable size may solve your problem.
    • Insufficient memory in Android devices also leads to memory issues.

提交回复
热议问题