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c+LX4H4bqQ4xNsAkLIQr/wpjra+DSsq7n2h4t4X3q09Ks1d8DjoG1BAXCLALUO88gCJoK3vjJVVhr9W3fu36lrhzNyFT4G+gYmFuMLAnsA0ZRy971Xb7nFoD/gAAAJvSURBVLVvu291za72s3q1Jw4S3wcAAIAUZBxj3y/X3v/Krsyi3XUn+tIfKgB9AwAAJAPa+n7AwT34at381/Y0dJy7J+dZ0DcAAEAyoK3vha/vyS6pf+iNhn0fD9z38HOgbwAAgGRAW985b9Q9sq7+9+sb9ncO3J/7B9A3AABAMqCt78ecux8vrcvfsMff1c88Cr1vAACApEBb3/nOHU+V1rIbdh/sOvebR+HUJQAAQFKgre+nSrwWZ83S0h18Z+9vclV+aV7sFMUOAAAAYAoZl75f3/z037ewb3x48OOzDzxsUdF3hyi0CQAAAMCUIXaMQ99PON7Pf/WDJ4ur/R09mTkqd116Kj18K58QfgAAgBQjMW3iX9PW0PejL7/3+1cqHyt6f/+Jz+5/SOWX5iEQCASSDFHq+yF7xZLV7y1Z8+997cF7F+WTLh4EAoFA1KPU9/zCdxcUvrdg1b8bAsF7skHfEAgEkqRR6jvzxUqm8P0HVnnqAp+lZ8PgCQQCgSRplPq+78Xq+wo3z1u1ZVeg51fZKqcuIRAIBJIMUer7nlXbMuw1Gatratt756o9MBYCgUAgyRClvu9as+uul3bd/dLuHcf7frnoGdLFg0AgEIh6lPq+85X69Ffq019p2HGi/xeLVR4YC4FAIJBkSJy+1+7DbD85cMdDKk8chEAgEEgyJE7frzZjtp88f8eSZaSLB4FAIBD1xOm72H/na/47X/Nv7xi6Y4mVdPEgEAgEop44fb/WgtneMXTHkj+SLh4EAoFA1BOn79dbMNs7hu7IAX1DIBBIkiZe3wfTXz+Y/vrB7R0R0DcEAoEkbRT6/n8DXd1c4FI25QAAAABJRU5ErkJggg==" alt="" />

2. 实现代码

public class firstActivity extends Activity {
private static final String AM_ACTION = "iflab.test.AM_ACTION"; // ACTION常量 /** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Button btn1 = (Button) findViewById(R.id.button1); // 获取对象
Button btn2 = (Button) findViewById(R.id.button2);
final AlarmManager alarmManager = (AlarmManager) getSystemService(ALARM_SERVICE);// 获取系统服务
Intent intent = new Intent(); // Intent对象
intent.setAction(AM_ACTION); // 设置Action
intent.putExtra("message", "该下班啦!"); // 传递字符串
final PendingIntent pendingIntent = PendingIntent.getBroadcast(
firstActivity.this, 0, intent, 0);
final long time = System.currentTimeMillis(); // 设置当前时间 btn1.setOnClickListener(new View.OnClickListener() { // 监听器 @Override
public void onClick(View v) {
// TODO Auto-generated method stub //设置重复闹钟提醒
alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, time,
8 * 1000, pendingIntent);
}
});
btn2.setOnClickListener(new View.OnClickListener() { // 监听器 @Override
public void onClick(View v) {
// TODO Auto-generated method stub
alarmManager.cancel(pendingIntent); // 取消闹钟
}
});
}
}

firstActivity

public class myReceiver extends BroadcastReceiver{

    @Override
public void onReceive(Context arg0, Intent arg1) {
// TODO Auto-generated method stub
String str;
str="触发重复闹钟:"+arg1.getStringExtra("message");
Toast.makeText(arg0, str,Toast.LENGTH_LONG).show(); //显示
}
}

myReceiver

<receiver android:name="myReceiver">
<intent-filter>
<action android:name="iflab.test.AM_ACTION"/>
</intent-filter>
</receiver>

Android -- 闹钟服务的使用(启动与停止)的更多相关文章

  1. Centos7 redis 5.0 服务设置、启动、停止、开机启动

    redis 没有配置服务,没有开启动,每次都要手工配置. 解决这个麻烦,我们new一个服务,然后开机启动即可. 1.创建服务(redis.conf 配置文件要注意,经过cp产生了很多个redis.co ...

  2. 手把手教用C#编写Windows服务 并控制服务 安装、启动、停止、卸载

    Windows服务 Microsoft Windows 服务(即,以前的 NT 服务)使您能够创建在它们自己的 Windows 会话中可长时间运行的可执行应用程序.这些服务可以在计算机启动时自动启动, ...

  3. MySQL服务使用cmd启动与停止服务

    MySQL未设置自动启动,在使用时需要手动打开服务,方法如下 mysql服务的启动: 以管理员的身份运行cmd命令窗口,输入命名 net start mysql 提示:必须使用管理员身份运行cmd 如 ...

  4. Android -- 闹钟服务的使用(单次闹钟)

    1. 效果图

  5. Android四大组件之Service --- 如何启动和停止Service?

    启动和停止方法主要是通过Intent来实现 以上一篇中的ServiceTest项目为例来启动和停止MyService这个服务 首先修改activity_main.xml中的代码,如下所示:<Li ...

  6. Appium+Python app自动化测试之脚本启动和停止Appium服务

    研究了一段时间的Appium android app的自动化测试,工作中需要连接多台手机终端同时执行测试用例,我实现的方式是获取用例中需要执行用例的设备id个数以及实际连接到的设备数(通过adb de ...

  7. 【转】Linux下apache/httpd服务启动与停止

    apache服务,或者说httpd服务,如何启动,如何开机启动. 转来转去,找不到原文.. 操作系统环境:红帽5,具体如下:# uname -a Linux machine1 2.6.18-164.e ...

  8. 本地计算机 上的 OracleOraDb11g_home1TNSListener 服务启动后停止

    今天玩oracle的时候突然遇到一个问题:本地计算机 上的 OracleOraDb11g_home1TNSListener 服务启动后停止.某些服务在未由其他服务或程序使用时将自动停止. 在网上找解决 ...

  9. MySQL 安装和启动服务,“本地计算机 上的 MySQL 服务启动后停止。某些服务在未由其他服务或程序使用时将自动停止。”

    MySQL 安装和启动服务,以及遇到的问题 MySQL版本: mysql-5.7.13-winx64.zip (免安装,解压放到程序文件夹即可,比如 C:\Program Files\mysql-5. ...

随机推荐

  1. 几年前做家教写的C教程(之三专讲了递归和斐波那契)

    C语言学习宝典(3) 数组: 一维数组的定义: 类型说明符  数组名[常量表达式] 例如: int  a[10]; 说明:(1)数组名的命名规则和变量名相同,遵循标示符命名规则 (2)在定义数组时需要 ...

  2. C# TreeView使用技巧

    节点勾选设置 TreeView树中节点勾选要求: 1.不选中一个节点,则其所有的子节点都不被选中. 2.选中一个节点,则其所有的子节点都被选中. 3.当一个节点的所有子节点都没有被选中时,该节点也没有 ...

  3. C# SMTP邮件发送 分类: C# 2014-07-13 19:10 333人阅读 评论(1) 收藏

    邮件发送在网站应用程序中经常会用到,包括您现在看到的博客,在添加评论后,系统会自动发送邮件通知到我邮箱的,把系统发送邮件的功能整理了下,做了一个客户端Demo,希望对有需要的童鞋有所帮助: 核心代码: ...

  4. android 入门-基础了解

    strings.xml – 文字資源. colors.xml – 顏色資源. dimens.xml – 尺寸資源. arrays.xml – 陣列資源. styles.xml – 樣式資源. #RGB ...

  5. PHPCMS 实现上一篇、下一篇

    方法一:直接调用phpcms系统的函数 <div class="info"> <span>上一篇:<a href="{$previous_p ...

  6. servlet、genericservlet、httpservlet之间的区别

    转自:http://blog.csdn.net/rat9912345/article/details/5161789 当编写一个servlet时,必须直接或间接实现servlet接口,最可能实现的方法 ...

  7. C# 指针操作图像 二值化处理

    /// <summary> /// 二值化图像 /// </summary> /// <param name="bmp"></param& ...

  8. C# 拓展方法

    /// <summary> /// 扩展类 /// </summary> public static class Extend { /// <summary> // ...

  9. IIS 内部运行机制

    ASP.NET是一个非常强大的构建Web应用的平台,它提供了极大的灵活性和能力以致于可以用它来构建所有类型的Web应用. 绝大多数的人只熟悉高层的框架如: WebForms 和 WebServices ...

  10. hadoop常用命令

    hdfs fsck /      副本数量 hdfs dfsadmin -report    hdfs大小