title: App crash while updating database
body: <p>I'm currently developing an android app with eclipse. I got a problem while updating the database. The problem is the app crash while the updateFlag method is called. The updateFlag method only update one specific column only based on the rowId.</p>
  
  <p>This is my database structure in SQLiteAdapter class:</p>
  
  <pre><code>public long insert(String answer, String question, String hint, String flag, String level){
  
    ContentValues contentValues = new ContentValues();
    contentValues.put(KEY_ANSWER, answer);
    contentValues.put(KEY_QUESTION, question);
    contentValues.put(KEY_HINT, hint);
    contentValues.put(KEY_FLAG, flag);
    contentValues.put(KEY_LEVEL, level);
    return sqLiteDatabase.insert(MYDATABASE_TABLE, null, contentValues);
   }
  </code></pre>
  
  <p>This is the update method in SQLiteAdapter class:</p>
  
  <pre><code>public void updateFlag(long rowId)
      {
          ContentValues args = new ContentValues();
          args.put(KEY_FLAG, "1");
          sqLiteDatabase.update(MYDATABASE_TABLE, args, KEY_ROWID + "=" + rowId, null);
      }
  </code></pre>
  
  <p>And this is how I call the updateFlag method in another class:</p>
  
  <pre><code>        mySQLiteAdapterListener2 = new SQLiteAdapter(this);
          mySQLiteAdapterListener2.openToWrite();
          long idListener = Long.parseLong(getId);
          mySQLiteAdapterListener2.updateFlag(idListener);
          mySQLiteAdapterListener2.close();
  </code></pre>
  
  <p>What's wrong with my code? Anyone know how to update one specific column based on rowId in the right way?</p>