Saturday, 7 September 2013

How to make a Singleton Database class to write data into Sqllite db?

How to make a Singleton Database class to write data into Sqllite db?

Even though I create a static class to hold the database helper instance,
I'm confused as to where do I instantiate the class. And how do I ensure
that only one instance of the class is available?
What I meant to say is, I'm confused in which activity and how should I be
instatiating the class for it to remain one instance?

No comments:

Post a Comment