-
广告位 for android
资源描述下载直接拿来用的 比较好的············
- 2023-04-27 07:35:04下载
- 积分:1
-
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
-
Android MyThread线程用法实例 切换图片
Android 使用MyThread创建线程,这是用法实例源码,本例中使用线程来控制切换图片
public void onCreate(Bundle savedInstanceState) {//重写的onCreate方法
super.onCreate(savedInstanceState);
setContentView(R.layout.main);//设置当前的用户界面
myImageView = (ImageView) findViewById(R.id.myImageView);//得到ImageView的引用
MyThread myThread = new MyThread(this);//初始化MyThread线程
myThread.start();//启动线程
}
public void run() {//重写的run方法
while(true){//循环
activity.myHandler.sendEmptyMessage((what++)%4);//发送消息
try{
Thread.sleep(2000);//睡眠
}
catch(Exception e){//捕获异常
e.printStackTrace();//打印异常信息
}
}
}
- 2022-03-24 06:51:47下载
- 积分:1
-
汽车电池监控系统
监控汽车电池的嵌入式应用程序,非常好用的程序,电池管理系统不仅要监测混合动力汽车电池的充放电电流、总电压和剩余电量SOC,还要预测电池的功率强度,以便监控电池的使用状况,并且不对电池造成伤害
- 2019-03-27下载
- 积分:1
-
安卓仿天天动听源码
仿天天动听播放器源码,安卓系统。代码是完整的,直接用eclipse导入工程运行即可。
- 2022-04-23 22:04:03下载
- 积分:1
-
ptr2
类似sina微博的下拉刷新功能实现demo(Similar sina microblogging functionality to achieve the drop-down refresh demo)
- 2011-10-20 10:10:39下载
- 积分:1
-
com
STREAMINGVIDEO on android
- 2011-09-26 02:25:17下载
- 积分:1
-
code
《Android热门应用开发详解》邵长恒本书定位于已有一定基础的Android中高级开发相关人员及计算机爱好者学习使用,还可作为社会相关办学、大中专院校的辅助教材使用。( Android popular application development explain, Shao Changheng book targeted at Android has a certain basis of relevant personnel and senior developers learning to use a computer enthusiast, but also as social-related schools, colleges use teaching aids.)
- 2016-01-15 13:32:15下载
- 积分:1
-
Android-PPT
Android learn. This document include all PPT and other meterials to help you learn the Android development(Android learn. This document include all PPT and other meterials to help you learn the Android development.)
- 2015-05-05 21:00:44下载
- 积分:1
-
Android MultiThreadDownload多线程多任务断点续传例子源码
Android MultiThreadDownload多线程多任务断点续传例子源码,里面包括了下载类、多线程类、进度条类、数据库操作类等,同样对大家是很有用的。这个多线程多任务的Android下载模块,代码中有丰富 注释,是初学者研究学习Android 编程技术的好范例。
- 2022-04-27 16:00:39下载
- 积分:1