public long insertEntry(ArrayList<String> key,ArrayList<String> value){
  ContentValues contentValues=new ContentValues();
  for (int i=0; key.size() > i; i++) {
    contentValues.put(key.get(i),value.get(i));
  }
  Log.v("Database Add",contentValues.toString());
  return db.insert(mDefaultTable,null,contentValues);
}

public long insertEntry ( ArrayList < String > key , ArrayList < String > value ) { ContentValues contentValues = new ContentValues ( ) ; for ( int i = 0 ; key . size ( ) > i ; i ++ ) { contentValues . put ( key . get ( i ) , value . get ( i ) ) ; } Log . v ( "Database Add" , contentValues . toString ( ) ) ; return db . insert ( mDefaultTable , null , contentValues ) ; }
insert a row into the database .
