Possible Duplicate:
Is it possible to apply primary key on the text fields in android database
I have done like these getting force close.
private static final String CREATE_NEWCUSTOMER = "create table newcustomer (_id integer primary key autoincrement, "
+ "cname text primary key, date text , " + "caddress text);";
it working for integer if any have idea please help me.
You don’t create primary keys like that in SQLite. I have not tested the following, but according to the documentation it should work: