title: search a value from sqlite always return empty result
body: <p>Hi I'm trying to add the preferred option to my application I started with sqlite to save the URL of the image but I have a problem when adding image url to favorite by this code : </p>
  
  <pre><code>public void AddtoFavorite(Post pj) {
          SQLiteDatabase db = getWritableDatabase();
          ContentValues values = new ContentValues();
          values.put(KEY_IMAGE_CATNAME, pj.getName());
          values.put(KEY_IMAGE_URL, pj.getImgUrl());
          db.insert(TABLE_NAME, null, values);
          db.close();
      }
  </code></pre>
  
  <p>It is added successfully but when i want to check if image url exist in database or not </p>
  
  <pre><code>  public List&lt;Post&gt; getFavRow(String url) {
          List&lt;Post&gt; dataList = new ArrayList();
          @SuppressLint("Recycle") Cursor cursor = getWritableDatabase().rawQuery("SELECT * FROM Favorite WHERE imageurl = '" + url + "'", null);
          if (cursor.moveToFirst()) {
              do {
                  Post contact = new Post();
                  contact.setName(cursor.getString(0));
                  contact.setImgUrl(cursor.getString(1));
                  dataList.add(contact);
              } while (cursor.moveToNext());
          }
          return dataList;
      }
  </code></pre>
  
  <p>always i get empty list as result.</p>