39 public static final String ALARM_DONE_ACTION = "com.android.deskclock.ALARM_DONE"; 通过查看凝视能够知道,系统提供了两个Action用于广播闹钟事件,包含:com.android.deskclock.ALARM_ALERT和com.android.deskclock.ALARM_DONE,即当闹钟响起时触发com.android.deskclock.ALARM_ALERT,而当闹钟停止或者小睡时触发co...
通过Menu→Config(配置)→Sounds来添加音效。 Alarm Sound:是一个番茄时间结束时的提示音。 Clock Sound:是一个番茄时间进行中的提示音。 Volume:用来调整声音的大小。 选中“Sound enabled”,就会有提示音,反之就没有声音。 选中“Fade ticking”,番茄时间进行中提示音会反复播放。 4、修改番茄时间 通过“Menu--C...
set the sound of the alarm. There are two way of setting the sound */ // n.sound=Uri.parse("file: // /sdcard/alarm.mp3"); n.sound = Uri.withAppendedPath(Audio.Media.INTERNAL_CONTENT_URI, " 20 " ); // Post a notification to be shown in the status bar nm.notify(NOTIFICATION_...
.StatusBarPolicy调用registerReceiver注册了感兴趣的intent,当感兴趣的intent发生时,对图标进行更新。例如,设置一个闹钟后,闹钟模块会发出一个叫做Intent.ACTION_ALARM_CHANGED的广播,然后StatusBarPolicy接收到此广播,继而更新状态栏上的闹钟图标。 ……… // Alarm clock StatusBarPolicy构造方法中初始化闹钟图标 mServic...
setAlarm(Context context, int flag, int hour, int minute, int id, int week, String tips, int soundOrVibrator) 参数介绍: @param flag 周期性时间间隔的标志,flag = 0 表示一次性的闹钟, flag = 1 表示每天提醒的闹钟(1天的时间间隔),flag = 2 表示按周每周提醒的闹钟(一周的周期性时间间隔) ...
TimeMillis()+intervalMillis,intent);}intflag=intent.getIntExtra("soundOrVibrator",0);IntentclockIntent=newIntent(context,ClockAlarmActivity.class);clockIntent.putExtra("msg",msg);clockIntent.putExtra("flag",flag);clockIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);context.startActivity(clockIntent)...
它的命令行界面支持与linux-tools perf大致相同的选项,但是它还支持许多Android特有的改进 |- slideshow // 幻灯片展示 |- sound // 声音相关 |- squashfs_utils // SquashFS是一套基于Linux内核使用的压缩只读文件系统。该文件系统能够压缩系统内的文档,inode以及目录,文件最大支持2^64字节。 |- su // su...
AlarmManagerUtil.setAlarmTime(context, System.currentTimeMillis() + intervalMillis, intent); } int flag = intent.getIntExtra("soundOrVibrator", 0); Intent clockIntent = new Intent(context, ClockAlarmActivity.class); clockIntent.putExtra("msg", msg); ...
In the app you may set up the volume of the alarm ringtone and make it sound gradually from low to loud. If you think that you still may oversleep then you may set either mathematical puzzle or captcha you need to solve in order to turn the alarm clock off. ...
Sound Files The app uses pre-recorded .wav (or .mp3) sound files, so it is possible to cutomize the clock with your own voice and sound effects. Here is the list of required sound files (these files live in the res/raw sub-directory) -- file name -- -- content -- alarm1 alar...