what is the sms drafts box uri in android? -


i want read sms in draft box of android write app can read sms in inbox sent box dont know uri path of draft box in android should replace uri path of draft box inbox read sms in drafts it?

   sms objsms = new sms();         uri message = uri.parse("content://sms/sent");         contentresolver cr = context.getcontentresolver();          cursor c = cr.query(message, null, null, null, null);          int totalsms = c.getcount();         log.i("readdddddddd inbox",totalsms+"***************************" );         if (c.movetofirst()) {             (int = 0; < totalsms; i++) {                  objsms = new sms();                  objsms.setphone(c.getstring(c                         .getcolumnindexorthrow("address")));                 objsms.setmessage(c.getstring(c.getcolumnindexorthrow("body")));                  objsms.setdate_time(c.getstring(c.getcolumnindexorthrow("date")));                    ars.add(objsms);                 c.movetonext();             }         }          c.close();           return ars; 

sms draft uri is

content://sms/drafts/  uri message = uri.parse("content://sms/drafts/"); 

the whole list of sms uris are:

inbox = "content://sms/inbox" failed = "content://sms/failed" queued = "content://sms/queued" sent = "content://sms/sent" draft = "content://sms/draft" outbox = "content://sms/outbox" undelivered = "content://sms/undelivered" = "content://sms/all" conversations = "content://sms/conversations"                 "content://mms-sms/conversations" 

some documented , rest not/


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -