android file format of SMS to add SMS through Intent -


i using launch sms app add (restore) messages.

intent sendintent = new intent(intent.action_view); sendintent.putextra("sms_body", "content of sms goes here..."); sendintent.settype("vnd.android-dir/mms-sms"); startactivity(sendintent); 

and save contacts.

        intent intent = new intent(intent.action_view);         intent.settype(contactscontract.contacts.content_type);         intent.setdataandtype(uri.fromfile(contact), "text/x-vcard");         intent.addflags(intent.flag_activity_new_task);         startactivity(intent); 

while adding contacts have format text/x-vcard(vcf file) accepted contact app. so, passing in file.

question: format should use add messages. want add messages @ time.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -