Thish code work fine for me it show the information of every employee one by one. BUT i want to see only the information of the one employee of given id. how can i do that .
c=myDbHelper.query("EMP_TABLE", null, null, null, null,null, null);
if(c.moveToFirst())
{
do {
Toast.makeText(CopyDbActivity.this,
"_id: " + c.getString(0) + "\n" +
"E_NAME: " + c.getString(1) + "\n" +
"E_AGE: " + c.getString(2) + "\n" +
"E_DEPT: " + c.getString(3),
Toast.LENGTH_LONG).show();
} while (c.moveToNext());
}