安卓短信功能的实现

安卓短信功能的实现

ID:6321190

大小:133.00 KB

页数:6页

时间:2018-01-10

安卓短信功能的实现_第1页
安卓短信功能的实现_第2页
安卓短信功能的实现_第3页
安卓短信功能的实现_第4页
安卓短信功能的实现_第5页
资源描述:

《安卓短信功能的实现》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、Android短信功能的实现——调用系统短信接口直接发送短信这个项目是通过自己编的App发送手机短信。本人也是初学者,项目代码都是网上前辈的。首先向无私的前辈致谢!此文中包含了所有关键代码,且已经在手机上测试成功。本人水平有限,如有错误请自行修改。作者SDK版本号:首先上界面图:1、新建一个Android工程(略)2、在AndroidMainfest.xml中加入所需要的权限:

2、-permissionandroid:name="android.permission.SEND_SMS">为了后面测试方便,干脆把SMS的所有权限加上。3、下面是mai

3、n.xml,界面代码:

4、oid:paddingLeft="@dimen/activity_horizontal_margin"android:paddingRight="@dimen/activity_horizontal_margin"android:paddingTop="@dimen/activity_vertical_margin"tools:context="alex.example.sendmessage.MainActivity">

5、"android:layout_width="wrap_content"android:layout_height="wrap_content"android:textSize="20sp"android:text="@string/lianXiRen"/>

6、ut_alignLeft="@+id/phone_number_textView"android:layout_below="@+id/phone_number_textView"android:layout_marginTop="10dp"android:ems="10"android:hint="@string/lianXiRen_hint"/>

7、id:layout_height="wrap_content"android:layout_alignLeft="@+id/phone_number_editText"android:layout_below="@+id/phone_number_editText"android:layout_marginTop="20dp"android:text="@string/neiRong"android:textSize="20sp"/>

8、xt"android:layout_width="match_parent"android:layout_height="wrap_content"android:layout_alignLeft="@+id/send_sms_textView"android:layout_below="@+id/send_sms_textView"android:layo

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。