Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quartz in Android #607

Closed
hewitta opened this issue Jul 11, 2020 · 2 comments
Closed

Quartz in Android #607

hewitta opened this issue Jul 11, 2020 · 2 comments
Labels
stale Inactive items that will be automatically closed if not resurrected

Comments

@hewitta
Copy link

hewitta commented Jul 11, 2020

StdSchedulerFactory in Quartz requires some classes from java.beans that aren't included in Android. There is a jar file available from Google to add the classes, but the import path to the classes needs to be changed in the Quartz files which are read-only. Any help in resolving this would be appreciated.

screenshot

@mikedawson
Copy link

Although this is an old issue, as it turned up in a search for me, I'll post an answer.

Even if you get Quartz to compile on Android, it probably won't do what you want. Android will destroy applications shortly after the user leaves them (whether or not they were explicitly closed). Quartz can't execute anything if it's not running.

If you want to execute tasks on a schedule on Android reliably, you need to use Android's APIs to do so (such that your task will execute at the desired time). JetPack WorkManager is the way to do that: https://developer.android.com/topic/libraries/architecture/workmanager

@stale
Copy link

stale bot commented Aug 2, 2021

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale Inactive items that will be automatically closed if not resurrected label Aug 2, 2021
@stale stale bot closed this as completed Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Inactive items that will be automatically closed if not resurrected
Projects
None yet
Development

No branches or pull requests

2 participants