Question

I am making a app which requires me to schedule task. My user can schedule an e-mail body, subject,recipient e-mail address etc and those datas will be saved in internal DB. They will also specify the time and date on which they want the app should send the e-mail and inform them afterwards. I know about AlarmManager but not sure if this can be accomplished with it. Please suggest. Is there any third party library for that?

Était-ce utile?

La solution

You can use AlarmManager to schedule work in background and Check the system date and time with user set date and time. if they met the information then use this example to send email via background in android.(I do not give you source code because AlarmManager and mail code in internet)

example to send email in background

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top