title: Sqlite update a column based on where clause android
body: <p>I am developing an android app, where I want to update a column in a row based on a where clause which comprises of two values. Below is what I have tried.</p>
  
  <pre><code>public void setlocationsetcolumn(double lats , double longs, String setvalue)
  {
      SQLiteDatabase db = this.getWritableDatabase();
      ContentValues values = new ContentValues();
  
      values.put(Loc_set, setvalue);
  
      db.update(TABLE_LATLONG, values, " WHERE "+Loc_lati +" = " + lats+" AND "+Loc_longi+" = "+longs, null);
  }
  </code></pre>
  
  <p>I wan to update the Loc_set, based on the lats &amp; longs values. but i am getting a force close. Am I doing something wrong here. Please help.Thanks!</p>