All health!
Just recently (most recently) began to master the development of applications for android.
Introductory: There is an Android studio. There is one database with six tables per sqlite. There are four activites that display data from this database. The selection of data for each activation is made by a query from the database based on the data transferred from the previous activation.
My implementation: when I start each activation, I connect to the database with a new one and pull out the necessary data with a request. I push everything into an array that is bound to RecycledView. Everything works and even seems to be pretty good =)
Doubts: I am confused by the part of the database connection in each activity. It seems to me somehow abnormal. Google did not suggest a suitable answer and / or other implementation. I want to make one connection and then use it, then at the end close it. And then with each transition a new one is created, but not Feng Shui. There are concerns that this may be a bottleneck for larger projects.
Question: How to work with the base in one "session" with one connection?
ZY There are puns with terminology, please forgive. I'm new to the Android family =)