android - How to read draft message address , it always returns null value -


i implementing sms application, want store sms values internal xml file , restore sms values xml file sms application, far inbox messages , sent messages working fine problem draft messages. please me on , thank you.

// create draft box uri uri drafturi = uri.parse("content://sms/draft");  // list required columns string[] reqcols = new string[] { "_id", "address", "body" };  // content resolver object, deal content provider contentresolver cr = getcontentresolver();  // fetch sent sms message built-in content provider cursor c = cr.query(drafturi, reqcols, null, null, null);    <uses-permission android:name="android.permission.read_sms"></uses-permission> 

tutorial link


Comments

Popular posts from this blog

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -