Design intent:
When I learned the service chapter of the first line of code, it involved the content of Alarmmanager. Then I was in the attention of "procedural apes how to protect the eyes " problem.
So he made a demo, for every hour or so to remind, and then around the friends see I have this timing reminder, think more novel. Say you use this idea to make an app alone.
Given the personalization of the software. In this application, I also added the ability to set up images, set reminders, and so on. Friends say personalized vibration is a bright spot.
Finally effect:
involving knowledge points and Related Blog address:
(Most of the blog is related to the author in the study of the problems encountered, some of the basic things may not be too much elaborated on the part)
1, Drawerlayout
Android drawerlayout sideways menu +nineoldandroids animation
Android drawerlayout High Imitation QQ5.2 bi-directional Slide menu
2, the use of fragment
Android Viewpager+fragment Master interface (super easy to understand demo!
)
Fragment life cycle
3. Sharepreference Storage
Android Sharedpreference Simple to use (login interface to remember password)
4, Spinner
Android Spinner setselection Invalid total display first item
5, the use of notification
Android notification notification using small instances (vibration, lighting, sound)
----This is the use of Android 3.0 before, some of them are not available, just for a reference.
The following is the use of the new version number.
ANDROID Notification bar Notification integrated learning (a demo that gives you a complete understanding of it)
6. Service and Alarmmanager use
Android Background Timer reminder (for Service,alarmmanager use)
How Android makes backend service services not killed (set up front desk service)
7. Take pictures and get photos from albums
Android calls camera to take pictures, select photos from albums and crop them
Android to get pictures from the album error, the picture can not be cropped problem
8, the use of drawable resources
Android Change control skins (using drawable resources)
8, self-defined title (simple self-defined layout)
Android defines the use of view (best demo--return title bar)
Personal Summary:
This application of the author from the design of the UI to achieve the same function almost 3 days, and also encountered a lot of problems. But because most of the functions have already been studied, so there is not much hindrance. Also at the end of the article attached to the demo, to a novice on the android on the way to learn a material.
If you have any suggestions or additions to the blog I wrote, please feel free to comment.
Eye Care Reminder-source code:http://download.csdn.net/detail/double2hao/9402811
Android app development-Eye care Reminder-Summary