title: android.database.sqlite.SQLiteConstraintException: error code 19: constraint failed
body: <p>this is the error code:</p>
  
  <pre><code>09-27 11:56:01.425: WARN/System.err(10324): android.database.sqlite.SQLiteConstraintException: error code 19: constraint failed
  09-27 11:56:01.435: WARN/System.err(10324):     at android.database.sqlite.SQLiteStatement.native_execute(Native Method)
  09-27 11:56:01.435: WARN/System.err(10324):     at android.database.sqlite.SQLiteStatement.execute(SQLiteStatement.java:61)
  09-27 11:56:01.435: WARN/System.err(10324):     at android.database.sqlite.SQLiteDatabase.execSQL(SQLiteDatabase.java:1809)
  09-27 11:56:01.435: WARN/System.err(10324):     at de.enough.appmate.dbase.CMSResource.updateItem(CMSResource.java:1103)
  09-27 11:56:01.435: WARN/System.err(10324):     at de.enough.appmate.dbase.CMSResourceUpdater.updateItems(CMSResourceUpdater.java:178)
  09-27 11:56:01.435: WARN/System.err(10324):     at de.enough.appmate.dbase.CMSResourceUpdater.loadUpdates(CMSResourceUpdater.java:102)
  09-27 11:56:01.435: WARN/System.err(10324):     at de.enough.appmate.dbase.CMSResourceUpdaterRunnable.run(CMSResourceUpdaterRunnable.java:32)
  09-27 11:56:01.435: WARN/System.err(10324):     at java.lang.Thread.run(Thread.java:1019)
  </code></pre>
  
  <p>and this is the method that is used</p>
  
  <pre><code>this.db.execSQL("INSERT INTO itemGalleryItems (id, imageCaption, imageUrl,itemID,orderIndex,displayInGallery) VALUES (?,?,?,?,?,?); ",
                          bindArgs);
  </code></pre>
  
  <p>the binArgs looks like:</p>
  
  <pre><code>String[] bindArgs = {
          (String) imageItem.get("id"),
          (String) imageItem.get("imageCaption"),
          (String) imageItem.get("imageName"),
          (String) item.get("id"),
          (String) imageItem.get("orderIndex"),
          (String) imageItem.get("displayInGallery")};
  </code></pre>
  
  <p>hope someone can help</p>
  
  <p>thanx
  newone</p>