机器人到自己的应用程序的模拟信息布局 [英] mimic message layout of android to own application

查看:139
本文介绍了机器人到自己的应用程序的模拟信息布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的Andr​​oid和我建立SMS应用,将发送邮件,我想memik Android的发送消息layout.I布局都试过,但没有suceeded.if有可以参考的布局?


解决方案

 意图smsIntent =新意图(Intent.ACTION_VIEW);
smsIntent.setType(vnd.android-DI​​R / MMS短信);
smsIntent.putExtra(地址,12125551212);
smsIntent.putExtra(SMS_BODY,消息正文);
startActivity(smsIntent);

意图将其带到了设备的默认短信活动,并为您处理......你没有做任何事情更多。

I am new to android and i am building sms application that will send the messages and i want to memik the layout of android's send message layout.I have tried but not suceeded.if there is a layout you can refer?.

解决方案

Intent smsIntent = new Intent(Intent.ACTION_VIEW);
smsIntent.setType("vnd.android-dir/mms-sms");
smsIntent.putExtra("address", "12125551212");
smsIntent.putExtra("sms_body","Body of Message");
startActivity(smsIntent);

Intent will take it to the device's default SMS activity and handle it for you... you don't have to do anything more

这篇关于机器人到自己的应用程序的模拟信息布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆