title: Android Sqlite update get called but no change occurs
body: <pre><code>public void updateEntry(long id, String perce) 
  {
  ContentValues editCon = new ContentValues();
  editCon.put(KEY_PERCENT, perce);
  open();
  db.update(DATABASE_TABLE, editCon, "_id=" + id, null);
  close();
  }
  </code></pre>
  
  <p>Above is my code inside database and it is called to update 1st entry in my activity as  </p>
  
  <pre><code>bt.setOnClickListener(new OnClickListener() {   
      @Override
      public void onClick(View v) {
          long i=0;
          objectDBAdapter.updateEntry(i, "2%" );
      }
  });
  </code></pre>
  
  <p>My problem is even if update method is called no change occurs in database. Please tell me where is the problem.The same update code works in a sample application, but i want to call it as stated.</p>