SQLITE Database update
<p>I have created a database table with the following elements: TABLE_CALLLOG(SDate varchar, Localcall varchar, National varchar);</p>

<p>First time I have read the calllog from the emulator &amp; assigns the values to Table of a database(TABLE_CALLLOG). But I can't able to update the table if there is a new entry in a calllog of a emulator without deleting the database.</p>

<pre><code>private void Fun_UpdateCallInfo(String strDate, int iLCO,int iLCM, int iLCL) 
{ 
  try 
    { 
       myDB = SQLiteDatabase.openDatabase(DB_PATH, null, SQLiteDatabase.OPEN_READWRITE);
        ContentValues initialValues = new ContentValues(); 
         String[] ss = { strDate }; 
         initialValues.put("LocalCallsOnnet", String.valueOf(iLCO));
          initialValues.put("LocalCallsMobile", String.valueOf(iLCM));
          initialValues.put("LocalCallsLandline", String.valueOf(iLCL));
         myDB.update(TABLE_CALLINFO, initialValues, "SDate=?", ss); 
          if (myDB != null) 
              { 
                 myDB.close(); 
              }
     } catch (Exception ex) 
       { 
        if (myDB != null) 
           { 
            myDB.close(); 
           } 
        } 
   }
</code></pre>

<p>Please provide me the code how to do it. </p>
