jeudi 20 août 2015

How to store employee object in SQLite Database in andriod

I have create a Employee object, in that properties are name,lastname,phone etc..

Now i created object

Employee emp = new Employee();

Now i want store emp object into bytes in a SQLite in an andriod.

Please help me how to acheive?

I know how to insert values through ContentValues but I don't want to create a table with 50 cols. I just want to save the class Object and I want to retrieve it later.

Aucun commentaire:

Enregistrer un commentaire