I have successfully programmed insertion & deletion of an Access Point in database but I need to find out how to update an access point. I'm using db.update()
but its not producing any result. I am using the following code to update an access point:
ContentValues updateFields = new ContentValues();
ContentResolver resolver = getContentResolver();
updateFields.put("name:", "AIRTEL");
updateFields.put("apn_addr", 11023);
resolver.update(TABLE_APN_URI,updateFields,"_id=?",new String[] {Long.toString(2)});
While updating I'm not getting any error as well.