tags:

views:

113

answers:

3

Hello,

I am new to Android, and I haven't developed any app regarding databases on Android yet. So I have a few basic questions.
I am after a good database class sample, that will let me to run the CRUD operations. I would like to use it as a static class
like: clsDB->Select("select * from clients");
or objClient->Delete(clientid);

I am wondering if someone, can share his database classes, if more people share the best. Also I have in mind to reuse this class in multiple ways, I will have services, activities etc...

Regards,
Pentium10

+2  A: 

The SDK provided Notebook tutorial will walk you through the basics of using the SQLite database ORM provided on the system in the way you describe.

Dinedal
that's not something I am after, it doesn't suit my needs.It's for a single table, does not keep on upgrade the old data, and it's not static class.I need someone's class, if that is possible.
Pentium10
If you're going to add extra requirements after people provide answers, you should edit your original question.
Christopher
A: 
Christopher
A: 

Give ActiveAndroid a try. Here's a sample project: https://www.activeandroid.com/help/sample-project/

Michael Pardo