Eder Sanchez
06/15/2021, 6:40 AMWhy enter twice?
``````gildor
06/15/2021, 6:44 AMgildor
06/15/2021, 6:44 AMgildor
06/15/2021, 6:44 AMEder Sanchez
06/15/2021, 6:48 AMis there another optimal way to know the life cycle? I need to know when it goes to destroy to free up resources
gildor
06/15/2021, 6:54 AMpepos
06/15/2021, 7:12 AMpepos
06/15/2021, 7:17 AMEder Sanchez
06/15/2021, 7:18 AMI need to delete the ExoPlayer instance
Eder Sanchez
06/15/2021, 7:21 AMin a fragment it would be canceling the onDestroy method, in this new approach I don't know very well where to release it, so I was looking for a way to know the life cycle
gildor
06/15/2021, 7:28 AMgildor
06/15/2021, 7:29 AMgildor
06/15/2021, 7:29 AMEder Sanchez
06/15/2021, 10:24 PMI found this way of doing it and I would like to know your opinion, as I understand it is only invoked once factory of AndroidView, it is there that when the screen is destroyed I call destroy () that is executed in the context of the activity and I can free the resources and destroy the ExoPlayer instance
gildor
06/17/2021, 6:17 AM