We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As we validate the content values in typical content provider before performing insertion or update like this example shown below,
private Uri insertMember(Uri uri, ContentValues values) { if (values.size() == 0) { return null; } String name = values.getAsString(MemberEntry.COLUMN_NAME); if (!isValidName(name)) { throw new IllegalArgumentException("Invalid Name"); } SQLiteDatabase db = mDbHelper.getWritableDatabase(); long newRowId = db.insert(MemberEntry.TABLE_NAME, null, values); if (newRowId == -1) { Log.d(LOG_TAG, "Failed to insert row"); return null; } return ContentUris.withAppendedId(uri, newRowId); }
Similarly, how do we validate content values when using this library?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
As we validate the content values in typical content provider before performing insertion or update like this example shown below,
Similarly, how do we validate content values when using this library?
The text was updated successfully, but these errors were encountered: