Android源码.docVIP

  • 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

文档评论(0)

1亿VIP精品文档

相关文档