-5
A
回答
0
你可以做的是
导入这在你的java文件import java.util.Calendar;
和复制这两者的功能,您将使用。
Calendar c = Calendar.getInstance();
if(c.get(Calendar.DAY_OF_WEEK) == Calendar.SATURDAY){
text1.setText("True");//this is optional just to show that this is working perfectly.
//You can do whatever in this, it will only works when the day is saturday.
}
+0
你可以找到如何通知或自己显示通知。这对于你想要的就足够了。 –
+0
即使应用没有运行,这是否会发送通知?谢谢 – Gry
+0
这不是用于通知。这是为了找出是否是星期六。对于通知查找,找到帮助[这里](https://stackoverflow.com/questions/20262711/send-notification-once-in-a-week)。 –
相关问题
- 1. 如何在swift中设置每周本地通知
- 2. android通知每周
- 3. 如何每两周通知UILocalNotification
- 4. iPhone:如何设置重复每日/每小时本地通知?
- 5. 如何设置OnGoing通知?
- 6. 如何设置通知
- 7. 如何设置通知
- 8. 我如何在下周六每隔两周提醒我
- 9. 如何设置UILocalNotifications每天每周和每年
- 10. Android中的每周的火灾通知
- 11. VB:如何设置每日/每周/定期XML检查
- 12. 如何设置每天早上9点通知?
- 13. 如何每周都会制作警报通知在刚周五在Android的
- 14. 每周六12:00点的UILocalNotification
- 15. 如何永久设置通知?
- 16. 如何设置警报以及通知?
- 17. 如何设置推送图标通知
- 18. 如何在通知上设置onclicklistener android
- 19. 如何设置JMX通知监听器?
- 20. 如何在PhoneGap中设置Audible通知
- 21. 如何在通知中设置文本
- 22. 如何在iPhone中设置通知
- 23. 如何获得设置的通知
- 24. 如何每周
- 25. 如何从通知中心读取iOS级别通知设置
- 26. nomore UDID - 如何存储每个设备的推送通知设置?
- 27. 如何设置周期性AlarmManager每天执行代码
- 28. 如何将通知设置活动添加到系统设置
- 29. Java定时器每小时都会关闭周六至周日
- 30. 周末不是周六/周日
>请参考以下链接https://stackoverflow.com/questions/20262711/send-notification-once-in-a-week –
我试过了,不过它没有指定通知将出现在周六 – Gry