I have more than one action (inside the same application) that must have access to the database. What is the best sample to implement this? Do I need a content provider, even if all the actions belong to the same application?
What activities should be responsible for opening and closing the database?
Not necessary. You just need to create a content provider if you want some external application to access your data.
: . - , , - Android (, ). Activity - , .
OReilly Android , , .
Source: https://habr.com/ru/post/1754459/More articles:Estimate the straightness of the line - excel-vbahttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1754455/changes-to-uiscrollview-contentoffset-dont-stick-when-decelerating&usg=ALkJrhiNxhciM_SKGR0ZwEPTRXnvdRFECwHow to create a Pin Wheel (like a Daisy Wheel) on iPhone - animationWhat happened to DOM level 1? - javascriptFirst C program - need help with eclipse - cthrottling when using Parallel.For - c #Как я могу улучшить производительность Java2D в TextLayout.draw(..) - performanceHow to programmatically select a checkbox in a document or MS Word 2007 template? - ms-wordAdding a unique constraint on the calculated column value - sqlJavascript letter object: why can't I do this? - javascriptAll Articles