开发者

how to send text(objects) from my activity to android's mms.apk

Before, i used intents for same activity. I have sent some text to other class via implementing serializable both of class which is sending texts and other class which is taken texts. I used them: Text Sending Class Has:: intent.putExtra("text",text); startActivity(intent); Text Receiving Class Has: getIntent().getSerializ开发者_运维知识库ableExtra("text").toString(); In my question for my new application, i have a listactivity which is stored some text. I want to send choosen text from list to send mms.apk's textfield. Is it possible to do that? Then user choose person from telephone directory and send message.

Many Thanks.


I'm think your asking how to send a SMS from within you activity with a specific string... if that is the case then to send an SMS from within your activity you create a sms intent:

i = new Intent(Intent.ACTION_SENDTO, Uri.parse("sms:"));
i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
i.putExtra("sms_body", "your string here"); 

See this question too: launch sms application with an intent

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜