Android: Unable to destroy activity

后端 未结 4 1913
野的像风
野的像风 2021-01-04 13:31

I am using the following code to removes childs on every viewgroup:

protected void onDestroy() {
    super.onDestroy();
    this.liberarMemoria();
}

public          


        
4条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-04 13:37

    Don't call it. UnsupportedOperationException is telling you that this method is not supported or functional so you'll have to accomplish the task another way. I don't see the need in calling this anyway as the garbage collector will handle this task. Bitmap recycling should be done manually if you need to ensure it being done.

提交回复
热议问题