Are DB close errors dangerous? I have a viewpager with 3 fragments that all access the DB. But I get an error about closing the DB everytime. How am I supposed to control this if all 3 fragments need the DB at the same time?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should control db connections of all your components. Consider keeping one DB connection for entire Fragment Activity, which contains your viewpager.
Erros can cause db connection failure.