- 2
- 0
- 约6千字
- 约 6页
- 2017-07-09 发布于河南
- 举报
Android源码
Android 找到本地联络人并向其发邮件
发送邮件中使用的Intent 行为为 Android.content.Intent.ACTION_SEND 。实际上在 Android 上使用的邮件发送服务是调用Gmail程序,而非直接使用SMTP的Protocol 。现在介绍本篇需要使用到的功能清单:发送服务是调用Gmail程序,而非直接使用SMTP的Protlcol。现在介绍本篇需要使用到的功能清单:
验证用户输入是否为正确的邮箱格式:
用户可以先把手动输入邮箱,也可以长按邮箱文本框跳到联系人那里找到联系人,得到联系人的邮箱,后反回;发送验证用户输入是否为正确的邮箱格式;验证用户输入是否为正确的邮箱格式;用户可以先把手动输入邮箱,也可以长按邮箱文本框跳到联系人那里找到联系人,得到联系人的邮箱,后返回;发送邮件。Java代码:
XML/HTML代码
7xml version=1.0 encoding=utf-8
absolutelayout
absolutelayout
android:-heright=fill-farent
android:layout-
XML/HTML代码
?xmlversion=1.0encoding=utf-8?
AbsoluteLayout
android:id=@+id/widget34
android:layout_width=fill_parent
android:layout_height=fill_parent
android:background=@drawable/white
xmlns:android=/apk/res/android
TextView
android:id=@+id/myTextView1
android:layout_width=wrap_content
android:layout_height=wrap_content
android:text=@string/str_receive
android:layout_x=60px
android:layout_y=22px
/TextView
TextView
android:id=@+id/myTextView2
android:layout_width=wrap_content
android:layout_height=wrap_content
android:text=@string/str_cc
android:layout_x=60px
android:layout_y=82px
/TextView
EditText
android:id=@+id/myEditText1
android:layout_width=fill_parent
android:layout_height=wrap_content
android:textSize=18sp
android:layout_x=120px
android:layout_y=12px
/EditText
EditText
android:id=@+id/myEditText2
android:layout_width=fill_parent
android:layout_height=wrap_content
android:textSize=18sp
android:layout_x=120px
android:layout_y=72px
/EditText
Button
android:id=@+id/myButton1
android:layout_width=wrap_content
android:layout_height=124px
android:text=@string/str_button
android:layout_x=0px
android:layout_y=2px
/Button
TextView
android:id=@+id/myTextView3
android:layout_width=wrap_content
android:layout_height=wrap_content
android:text=@string/str_subject
android:layout_x=60px
android:layout_y=142px
/TextView
EditText
android:id=@+id/myEditText3
android:layout_width=fill_parent
android:layout_height=wrap_content
android:textSize=18sp
android:layout_x=120px
android:layout_y=132px
您可能关注的文档
最近下载
- 2024年潍坊护理职业学院高职单招(英语/数学/语文)笔试2018-2023历年真题摘选带答案解析.docx VIP
- 《智能管理系统创新与发展》课件.ppt VIP
- 仁爱版七年级下册英语单词默写表(中文版).pdf VIP
- 2025年潍坊护理职业学院单招笔试数学试题库含答案解析.docx VIP
- 2025郑州中考一模化学试卷.docx VIP
- 2025河北单招第七类综合素质真题 .pdf VIP
- 2025黑龙江林业职业技术学院单招《数学》经典例题含答案详解(能力提升).docx VIP
- 大病低保申请书.docx VIP
- 发热伴血小板减少综合征药物治疗指南(2025年版)解读PPT课件.pptx VIP
- 2020泰和安TG3100广播控制盘安装使用说明书.pdf VIP
原创力文档

文档评论(0)