Re: [android-developers] Using same sqlite database from multiple Activities and Services

2012-07-10 Thread Romario
good article on the topic http://www.enterra-inc.com/techzone/handling_sql_issues/ -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, s

Re: [android-developers] Using same sqlite database from multiple Activities and Services

2010-04-27 Thread Martin Obreshkov
I my app i there is service which is working in background and it's holding the instance of sql connection. When no activities are using the service it's destroyed and the connection is closed. On Tue, Apr 27, 2010 at 2:48 PM, goosedroid wrote: > I have been trying to find a discussion on the be

[android-developers] Using same sqlite database from multiple Activities and Services

2010-04-27 Thread goosedroid
I have been trying to find a discussion on the best way to handle a common sqlite database which is shared by multiple Activities (or multiple Activities and Services). This is all in the same application. It seems that if each Activity has: void onCreate() { SQLiteDatabase db = SQLiteDatabas