Inserting SMS into inbox : android -


how can insert on sms inbox , set unread? tried using following code.

contentvalues values = new contentvalues(); values.put("address", "123456789"); values.put("body", "foo bar"); getcontentresolver().insert(uri.parse("content://sms/sent"), values); 

insertion working. don't know how set unread. please tell me type of sms table columns 'status', 'read' , 'seen'? how can use them? thanks.

use values.put("status", smsmanager.status_on_icc_unread);. status can read/unread/seen. have keep unread.

look @ message status

values.put("read", true);  // read 

and

values.put("read", false); // un read 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -