Since we are essentially creating a time-clock that reminds us when to work, eat lunch, and go home, we will have to edit the controller file to make our actions trigger based on the time of day.
If you run this program and the hour is 12, it will show the lunch view. You can also modify the code so that if it is in hour 5, it will show home, and hour 9 it will show the start view.
Well that's all the time we have for this article. In our next episode we will discuss how to build a simple application and how to link to actions.
Till then...
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |