I need a very simple reminder that would remind me to take my medicines every 12 hours.
Nothing fancy like settings and such ... the time can be hardcoded.
I just need it to run in background and send some alert on every 12 hours. That's all ... no fancy UI and stuff.
If you think that i am asking too much then please instruct me how to start ...
Thank you so much
Posts
Use you calendar on your phone instead of writing your own program? I'm sure you can put an event that is at least every day and if you need 12 hours create 2 of them with 12 hours betweend them.
An example would be greatly appreciated. N00b here
What phone do you have?
Before you start, you should know the below points
What is ?
1)Alarmmanager
2)Broadcastreceivers for Notifications
3)Services
4)Sqlite
Alarmmanager : using Alarmmanager we can set at time you need to remind.
Broadcastreceivers : helps to notify and use full to start the service after reboot.
Service : where u can handle the notified event and reset the time for next attempt.
Sqlite : stores your request .
if so, u can ignore sqlite and use Sharedpreferences.
I have a Sony Erricson Arc S.
Btw thank you Vijay, will check those out ...
Go to page 57 at http://www-support-downloads.sonymobile.com/lt18/userguide_AE_LT18_1253-8381.1.pdf and read there how you create an calendar event. Do one for time 0 and repeat that every day and another one for time 12 and repeat that for every day. No need to write an program in xamarin for something that simple.