-
Android Intent开发实例
Android Intent开发实例 核心代码:package com.amaker.ch06.app;import com.amaker.ch06.app.R;import android.app.Activity;import android.content.Intent;import android.os.Bundle;import android.view.View;import android.view.View.OnClickListener;import android.widget.Button;import android.widget.EditText;/** * @author 郭宏志 * 发送Email */public class MainActivity extends Activity { // 声明视图组件 private EditText toEditText,subjectEditText,contentEditText; private Button sendBtn; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); // 实例化视图组件 toEditText = (EditText)findViewById(R.id.toEditText01); subjectEditText = (EditText)findViewById(R.id.subjectEditText01); contentEditText = (EditText)findViewById(R.id.contentEditText01); sendBtn = (Button)findViewById(R.id.sendButton01); // 为按钮添加单击监听器 sendBtn.setOnClickListener(listener); } // 发送按钮单击监听器 private OnClickListener listener = new OnClickListener() { @Override public void onClick(View v) { // 获得输入信息 String to = toEditText.getText().toString(); String subject = subjectEditText.getText().toString(); String content = contentEditText.getText().toString(); // 创建Intent Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); // 设置内容类型 emailIntent.setType("plain/text"); // 设置额外信息 emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[]{to}); emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, subject); emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, content); startActivity(Intent.createChooser(emailIntent, "发送邮件...")); } };}
- 2014-11-24下载
- 积分:1
-
使用JAVA实现的三维图形处理.可根据输入的曲线方程,如x^2+y^2+z^2=1表示为(1...
使用JAVA实现的三维图形处理.可根据输入的曲线方程,如x^2+y^2+z^2=1表示为(1-(Y/50)^2+(Z/60)^2)^(1/2)*100),绘制三维曲线.并可通过拖动鼠标让曲线在三维空间中旋转-JAVA realize the use of three-dimensional graphics processing. May be imported under the curve equation, such as x ^ 2+ Y ^ 2+ Z ^ 2 = 1 is expressed as (1- (Y/50) ^ 2+ (Z/60) ^ 2) ^ (1/2)* 100), drawing three-dimensional curves. and by dragging the mouse so that curves in a three-dimensional rotation
- 2022-04-09 02:46:46下载
- 积分:1
-
java
手机源码 android手机开发的源码,例子比较的多,有需要的可以下载(Source android mobile phone)
- 2010-12-29 10:57:48下载
- 积分:1
-
MuiltyTool
结合了分页显示、拖拽换位、删除及动画效果,长按后可进行拖拽,并在拖拽的移动过程中有补位的动画效果,可在拖拽过程中换页。自定义点击目标的可删除、可移动的属性。(Combines paging display, drag transposition, delete, and animation effects, long press can drag and drag to move the process to fill the seats have animation, can change the course page in drag. Custom Click goals can be deleted, movable property.)
- 2013-12-11 10:45:16下载
- 积分:1
-
neural networks simulation in Java
neural networks simulation in Java
- 2022-02-24 23:52:05下载
- 积分:1
-
java 对string的各种函数,如跟int,byte的数据类型的转换,编码的转换等。
java 对string的各种函数,如跟int,byte的数据类型的转换,编码的转换等。-java on a variety of string functions, such as with int, byte data type conversion, encoding conversion.
- 2022-07-06 20:11:01下载
- 积分:1
-
Activity_02
Android 应用开发基础,Activity的使用和Layout布局设置(Android Develop Code)
- 2011-11-17 14:28:13下载
- 积分:1
-
eyedetecting
在android手机上使用opencv库识别静态人脸图像的眼睛位置(In use opencv library on android phone identifying the location of eyes in static facial images)
- 2020-06-25 20:40:02下载
- 积分:1
-
论坛系统
资源描述新用户的注册,会员登录,管理员删除用户,管理员删除帖子和修改帖子,查询主题,和查询用户这些功能,游客浏览留言,会员新增主题,会员留言回复,查询主题这些功能,可以满足一般的用户需要。
- 2022-03-23 05:24:34下载
- 积分:1
-
基于android的智能家居app源码
看着不错基于android的智能家居app源码基于android的智能家居app源码基于android的智能家居app源码基于android的智能家居app源码基于android的智能家居app源码基于android的智能家居app源码
- 2022-07-14 13:42:33下载
- 积分:1