[英]developing a scheduled application in android
i want to make a scheduled application in android , for example set a date and time and when these date and time reached a sound file will be played .. what is the possible ways to help me to achieve this 我想在android中安排应用程序,例如设置日期和时间,当这些日期和时间到达时,将播放声音文件..什么是可能的方法来帮助我实现这一目标
thanks Sherif 谢谢谢里夫
The best possible way is to use AlarmManager
Have a look at the AlarmManager
in android. 最好的方法是使用AlarmManager
看看android中的AlarmManager
。
http://developer.android.com/reference/android/app/AlarmManager.html http://developer.android.com/reference/android/app/AlarmManager.html
AlarmManager alarmManager = (AlarmManager) this.getSystemService(this.ALARM_SERVICE);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.