• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps multiple records not insert into sqllite

I tryed to insert multiple records in sqllite database but it insert only first record my code is here :
Sqllitedatabase db;

public void createTableEntry(MyDetails detail) {
ContentValues content = new ContentValues();
String name[],sex[],city[];
int age[];
name = detail.getName();
age = detail.getAge();
sex = detail.getSex();
city = detail.getCity();
for(int i = 0; i<detail.getAge().length;i++){
content.put(KEY_NAME, name);
content.put(KEY_AGE, age);
content.put(KEY_SEX, sex);
content.put(KEY_CITY, city);
db.insert(DATABASE_TABLE, null, content);
}
}

but it insert only first record

Please help me urgently with suitable code.........

Regards

Ravindra
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones