tags:

views:

31

answers:

1

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.

A: 

While updating i m not getting any error as well.

Gaurav Gupta
This should go as an edit to the question, not as an answer.
bzlm