title: How to prevent SQL injection in Android?
body: <p>Security alert</p>
  
  <p>Your app contains a SQL Injection Vulnerability. Please see this Google Help Center article for details.</p>
  
  <p>Vulnerable classes:</p>
  
  <p>provider/FormsProvider;->query</p>
  
  <p>Affects APK version 6.</p>
  
  <pre><code>public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs,
              String sortOrder) {
          SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
          qb.setTables(FORMS_TABLE_NAME);
  
          switch (sUriMatcher.match(uri)) {
              case FORMS:
                  qb.setProjectionMap(sFormsProjectionMap);
                  break;
  
              case FORM_ID:
                  qb.setProjectionMap(sFormsProjectionMap);
                  qb.appendWhere(FormsColumns._ID + "=" + uri.getPathSegments().get(1));
                  break;
  
              default:
                  throw new IllegalArgumentException("Unknown URI " + uri);
          }
  
          // Get the database and run the query
          SQLiteDatabase db = mDbHelper.getReadableDatabase();
          Cursor c = qb.query(db, projection, selection, selectionArgs, null, null, sortOrder);
  
          // Tell the cursor what uri to watch, so it knows when its source data changes
          c.setNotificationUri(getContext().getContentResolver(), uri);
          return c;
      }
  </code></pre>
  
  <p>Please help me. How I can prevent SQL-injection security alert from google play console.</p>