Android create Insert statemnet at runtime
<p>I have fileds list &amp; values list.I want to insert records using DBAdapter.I tried from this link <a href="http://mfarhan133.wordpress.com/2010/10/24/database-crud-tutorial-for-android/" rel="nofollow">http://mfarhan133.wordpress.com/2010/10/24/database-crud-tutorial-for-android/</a></p>

<pre><code>  DBAdapter dbAdapter = DBAdapter.getDBAdapterInstance(Insert.this);
  dbAdapter.openDataBase();


ContentValues initialValues = new ContentValues();
initialValues.put("name", etName.getText().toString());
initialValues.put("age", etAge.getText().toString());
long n = dbAdapter.insertRecordsInDB("user", null, initialValues);
Toast.makeText(Insert.this, "new row inserted with id = " + n, Toast.LENGTH_SHORT).show();
</code></pre>

<p>Please anybody help me how to send the fields &amp; their values at runtime.Please help me as soon as possible</p>
