android - The return value of update query is 0 -


i want marks sms read . have id of sms . have tried following code mark sms read .

public void setread(int position, string smsmessageid) {          contentvalues values = new contentvalues();         values.put("read",true);         int flag = context.getcontentresolver().update(uri.parse("content://sms/inbox"),                 values, "_id=" + smsmessageid, null);         toast.maketext(context, "the result "+flag, toast.length_long).show();   } 

but return result 0 . why return result 0 ?

my app not set default . why , return result 0 .if app set default , return result 1 .


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -