I would like to use ORMLite, but I do not like that I manage 1 database assistant for each action. Wouldn't it be better to have one for the entire application life cycle? So far I have used greendao, and that is not a problem.
I wanted to implement it, however, I cannot find a suitable way to correctly release the db helper when destroying the application (I can easily open it in Application onCreate), because there is no onDestroy () application method.
Does anyone have a way to do this?
bakua source
share