Comments (2)
Yep, this is the major reason I made it clear in the README to not use this in production. Obviously it will never be as good pre-lollipop, but any suggestions on how to make it more battery-efficient would be helpful! I'm even willing to adjust the semantics a bit (for example, I'm considering on just using a simple arbitrary time to trigger the idle constraint since the api to do this pre-lollipop in an efficient way isn't really there).
from jobschedulercompat.
A solution for pre-lollipop is to imitate the way how Googles does in Lollipop --- run a standalone process of your own, separately from any app processes. So no matter how many apps are using your library, only your process is active at background. This gives the system opportunities to kill all other app processes for sleeping mode. So your process need to check the conditions for those apps, and start app processes when certain conditions are fulfilled.
from jobschedulercompat.
Related Issues (20)
- Service not registered HOT 4
- Gradle sync is failing after adding dependency HOT 1
- Could not find class 'android.os.PersistableBundle' on devices < API21 HOT 4
- .setPeriodic does not work? HOT 1
- Looking for a maintainer HOT 1
- Proguard issue HOT 1
- What license? HOT 1
- Exception JobSchedulerService has leaked ServiceConnection HOT 1
- Marketing your library HOT 5
- Bug fix: Rescheduling has problem (refers to issues #25 and #18) HOT 5
- Caused by: java.lang.NullPointerException
- java.lang.IllegalArgumentException: Service not registered HOT 1
- android.app.ServiceConnectionLeaked HOT 1
- When the version is different from 21(LOLIPOP), it runs only once and stops.
- ClassCastException proguard only on 5.0 Nexus 7 HOT 1
- a Good project,why [Deprecated]? hope Continue to maintain and update... HOT 2
- Run Service only after run application HOT 1
- JobService is not running
- Deprecated?
- How To Create local Notification
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jobschedulercompat.