title: ContentProvider insert isn't inserting data to SQLiteDatabase
body: <p>I'm inserting data to a SQLiteDatabase via a ContentProvider. My line of code:</p>
  
  <pre><code>Uri mNewUri = getContentResolver().insert(MY_URI, values);
  </code></pre>
  
  <p>values is a ContentValues variable that I've populated with data via various calls to the put method. In the debugger, I see that the insert method returns a valid Uri into mNewUri. However, when I try to display data, I get no data back. When I go to the command line and try:</p>
  
  <pre><code>cmd&gt; adb -e shell
  cmd&gt; sqlite3 /data/data/com.MyProject.project/databases/db-name.db
  sqlite&gt; select * from MyInfo_tbl;
  </code></pre>
  
  <p>(MyInfo_tbl is the table in my database class) But I see no results in the table. The insert method in my ContentProvider is:</p>
  
  <pre><code>public Uri insert(Uri uri, ContentValues values) {
      int uriType = sURIMatcher.match(uri);
      if (uriType != ALLDATA) {
          throw new IllegalArgumentException("Invalid URI for insert");
      }
      SQLiteDatabase sqlDB = mDB.getWritableDatabase();
      try {
          long newID = sqlDB.insertOrThrow(TABLE_BASEPATH,
                  null, values);
          if (newID &gt; 0) {
              Uri newUri = ContentUris.withAppendedId(uri, newID);
              getContext().getContentResolver().notifyChange(uri, null);
              return newUri;
          } else {
              throw new SQLException("Failed to insert row into " + uri);
          }
      } catch (SQLiteConstraintException e) {
          Log.i(DEBUG_TAG, "Ignoring constraint failure.");
      }
      return null;
  }
  </code></pre>
  
  <p>Does anyone know why this would be or where I could start looking to solve this problem? Thanks!</p>
  
  <p>PS I've also tried to insert data to the database by calling a db.execSQL line in the onCreate method of my database provider. This also does not insert any data.</p>