Wednesday, February 19, 2014

Please God help explain getContentResolver (). Update parameters


 threadId = cursor.getLong (1); 
String smsid = cursor.getString (cursor.getColumnIndex ("_id"));
/ / Int id = cursor.getInt (0);

/ / ThreadID.tostring ();
. context.getContentResolver () update (Uri.parse ("content :/ / sms /"), values, "thread_id = threadId and _id = smsid", new String [] {threadId + "", smsid + ""}); < / pre>

The above code runs in the broadcast, the aim is to set up recently as reading text messages deleted. Remove been achieved. But set to read has not done. I do not understand where the parameter update. Especially the last two parameters. Great God seeking help.<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
The reply was deleted administrator at 2014-01-14 11:51:49

No comments:

Post a Comment