sms - how to fetch draft in android programmatically -


i want fetch draft in android phone.

i find sample draft massages use below address.

getcontentresolver().query(uri.parse("content://mms-sms/canonical-address"), null, null, null, null); 

i hadn't result below uri , had exception:

content://sms/draft 

i've tested on android 5.1 , had iillegalexception don't know wrong.

i've tested in lg g4(android 5.1) , nexus 4 avd(android 4.2.2)

how can access drafts columns in android , body , number?

is there problem android version?

thanks tips.


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -