你设置alarm参数是多少次了,看来你的要求不长久,可以使用timertask更方便吧
解决方案 »
- 求助:android2.2 webview加载页面时,能否用本地资源替换页面中的资源(如图片、css等)?
- 请求高手帮忙完善游戏手柄效果?
- android怎样估算电池电量可用时间(参与就酌情给分,只希望问题尽早解决)
- 求助,基于android的运输监控系统,希望大家给点设计意见,谢谢
- 关于WebView和setContentView的疑问
- 图片在放大过程中如何裁剪?
- 安卓程序退出后实现确保后台继续运行?
- 求Android平板、手机数据展示思路,或类似应用,欢迎大家讨论
- Android下新建文件的问题
- Android如何顺序加载图片?
- 新手-import包-经验分享
- 如何通过一个按钮画出一个正方形显示在当前画面
目前我只知道 开始 和结束的时间,也可能 要运行很久的。 alarm 好像没有 执行多少次 这个参数吧
type One of ELAPSED_REALTIME, ELAPSED_REALTIME_WAKEUP}, RTC or RTC_WAKEUP.
triggerAtTime Time the alarm should first go off, using the appropriate clock (depending on the alarm type).
interval Interval between subsequent repeats of the alarm.
operation Action to perform when the alarm goes off; typically comes from IntentSender.getBroadcast(). 貌似没有说 什么时候结束吧 。、