public void updatelocation(String newloc, String cservice, String cno)
{
try
{
SQLiteDatabase sdb=getWritableDatabase();
String where=Table_info.Courier_service+ " LIKE ? AND "+Table_info.Courier_no +" LIKE ?";
String[] whereArgs=new String[]{"BLUE DART","BD01"};
System.out.println(whereArgs);
ContentValues cv=new ContentValues();
cv.put(Table_info.Location, newloc);
sdb.update(Table_info.Table_Name, cv, where, whereArgs);
Log.v("server Data", "Updation Successful");
sdb.close();
}
catch(Exception e)
{
System.out.println("update method error:"+e.getMessage());
}
}
lundi 29 décembre 2014
i am unable to understand that why this method is not updating database while no error no exception is getting
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire