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
Post a Comment