I dont use ViewModel, and want to handle lifecycle by TP.
I have Activity and complex model with inner state(i can't save it in Bundle)
- If I open scope by
Instance of Activity - it will be closed on onDestroy()[by smoothie].
- If I open scope by
constString - i need to close scope manualy.
Which way is correct?
I dont use ViewModel, and want to handle lifecycle by TP.
I have Activity and complex model with inner state(i can't save it in Bundle)
Instance of Activity- it will be closed ononDestroy()[by smoothie].constString- i need to close scope manualy.Which way is correct?