On Thu, Apr 7, 2011 at 2:04 PM, Nathan <[email protected]> wrote:
> "The database"? I guess that would work if you only use ONE,
> statically determined database.
> Since I don't have just one, I think I need a singleton hash table of
> opened databases, like I mentioned.
>
You are making this too complicated.
class StuffDatabase {
SQLiteDatabase mDatabase;
static StuffDatabase getInstance();
}
class OtherStuffDatabase {
SQLiteDatabase mDatabase;
static OtherStuffDatabase getInstance();
}
> I'll take your word for it. So if the user opens 10 or 100 databases
> in a session, I'll just leave them all open. That simplifies the
> singleton implementation if I don't have to do reference counting.
>
Why in the world do you have 10s of databases?
--
Dianne Hackborn
Android framework engineer
[email protected]
Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails. All such
questions should be posted on public forums, where I and others can see and
answer them.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en