Apps may not schedule more than 100 distinct jobs with JobIntentServiceAlpha-08: Apps may not schedule more than 100 distinct jobsHow to use ADB Shell when Multiple Devices are connected? Fails with “error: more than one device and emulator”Building and running app via Gradle and Android Studio is slower than via EclipseEclipse reports rendering library more recent than ADT plug-inJobIntentService : Unable to schedule jobs with other apps - OreoScheduled JobIntentService never starts on API >= 27 OreoUnable to schedule Alarm using JobIntentServiceApps may not schedule more than 100 distinct jobs crashWhat is the point of setting setInterruptIfStopped to true in a JobIntentService?More than one JobIntentService - performance vs clean code
Should I have shared a document with a former employee?
How to get a type of "screech" on guitar
Project Euler # 25 The 1000 digit Fibonacci index
Manager is asking me to eat breakfast from now on
Applying for jobs with an obvious scar
Why is the Intel 8086 CPU called a 16-bit CPU?
Last-minute canceled work-trip means I'll lose thousands of dollars on planned vacation
Could Europeans in Europe demand protection under UN Declaration on the Rights of Indigenous Peoples?
Discontinuous Tube visualization
Deleting a point in METAFONT
Are there foods that astronauts are explicitly never allowed to eat?
How electronics on board of JWST can survive the low operating temperature while it's difficult to survive lunar night?
Can a creature sustain itself by eating its own severed body parts?
Inscriptio Labyrinthica
Why should fork() have been designed to return a file descriptor?
Replacing light switches and outlets without electrical boxes
What could make large expeditions ineffective for exploring territory full of dangers and valuable resources?
I want light controlled by one switch, not two
Found old paper shares of Motorola Inc that has since been broken up
Why are there few or no black super GMs?
When a ball on a rope swings in a circle, is there both centripetal force and tension force?
I have found a mistake on someone's code published online: what is the protocol?
What is a Kravchuk transform and how is it related to Fourier transforms?
How important are the Author's mood and feelings for writing a story?
Apps may not schedule more than 100 distinct jobs with JobIntentService
Alpha-08: Apps may not schedule more than 100 distinct jobsHow to use ADB Shell when Multiple Devices are connected? Fails with “error: more than one device and emulator”Building and running app via Gradle and Android Studio is slower than via EclipseEclipse reports rendering library more recent than ADT plug-inJobIntentService : Unable to schedule jobs with other apps - OreoScheduled JobIntentService never starts on API >= 27 OreoUnable to schedule Alarm using JobIntentServiceApps may not schedule more than 100 distinct jobs crashWhat is the point of setting setInterruptIfStopped to true in a JobIntentService?More than one JobIntentService - performance vs clean code
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
Here's my JobIntentService
public class NotifierService extends JobIntentService
public static void enqueueWork(Context context, Intent work)
enqueueWork(context, NotifierService.class, JOB_ID, work);
protected void onHandleWork(Intent intent)
//simple if/else check
However, I got many crashes from the crashlytics which complained about 100 distinct jobs
:
Caused by java.lang.IllegalStateException: Apps may not schedule more than 100 distinct jobs
at android.os.Parcel.readException(Parcel.java:1951)
at android.os.Parcel.readException(Parcel.java:1889)
at android.app.job.IJobScheduler$Stub$Proxy.enqueue(IJobScheduler.java:211)
Is there any reason to solve it?
I had tried to cancel it before enqueuing the new one as below:
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP)
JobScheduler scheduler = (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE);
if (scheduler != null)
for (JobInfo jobInfo : scheduler.getAllPendingJobs())
if (jobInfo.getId() == JOB_ID)
scheduler.cancel(JOB_ID);
However, I got another issue:
Caused by java.lang.IllegalArgumentException: Given work is not active: JobWorkItemid=1 intent=Intent cmp=com.my.test.package/.notifier.NotifierService dcount=1
at android.app.job.JobParameters.completeWork(JobParameters.java:221)
Do you guys have any suggestion?
P/s: I could not reproduce it on my devices, but I got it thousand times in CrashReport tool. Canceling work before enqueuing the new work did solve the 100 distinct jobs issue, but it raised another bug as above.
android jobintentservice
add a comment |
Here's my JobIntentService
public class NotifierService extends JobIntentService
public static void enqueueWork(Context context, Intent work)
enqueueWork(context, NotifierService.class, JOB_ID, work);
protected void onHandleWork(Intent intent)
//simple if/else check
However, I got many crashes from the crashlytics which complained about 100 distinct jobs
:
Caused by java.lang.IllegalStateException: Apps may not schedule more than 100 distinct jobs
at android.os.Parcel.readException(Parcel.java:1951)
at android.os.Parcel.readException(Parcel.java:1889)
at android.app.job.IJobScheduler$Stub$Proxy.enqueue(IJobScheduler.java:211)
Is there any reason to solve it?
I had tried to cancel it before enqueuing the new one as below:
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP)
JobScheduler scheduler = (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE);
if (scheduler != null)
for (JobInfo jobInfo : scheduler.getAllPendingJobs())
if (jobInfo.getId() == JOB_ID)
scheduler.cancel(JOB_ID);
However, I got another issue:
Caused by java.lang.IllegalArgumentException: Given work is not active: JobWorkItemid=1 intent=Intent cmp=com.my.test.package/.notifier.NotifierService dcount=1
at android.app.job.JobParameters.completeWork(JobParameters.java:221)
Do you guys have any suggestion?
P/s: I could not reproduce it on my devices, but I got it thousand times in CrashReport tool. Canceling work before enqueuing the new work did solve the 100 distinct jobs issue, but it raised another bug as above.
android jobintentservice
Any help for this? I am getting the same issue.
– Sujeet Kumar
Jun 14 at 8:52
I'm facing the same issue with my implementation. All finished jobs are somehow created over again if I start a new job. I'm on 2.0.1. It's supposedly fixed in some earlier alpha version as mentioned in stackoverflow.com/questions/52286698/… but I don't think so.
– ArunL
Jul 15 at 12:21
add a comment |
Here's my JobIntentService
public class NotifierService extends JobIntentService
public static void enqueueWork(Context context, Intent work)
enqueueWork(context, NotifierService.class, JOB_ID, work);
protected void onHandleWork(Intent intent)
//simple if/else check
However, I got many crashes from the crashlytics which complained about 100 distinct jobs
:
Caused by java.lang.IllegalStateException: Apps may not schedule more than 100 distinct jobs
at android.os.Parcel.readException(Parcel.java:1951)
at android.os.Parcel.readException(Parcel.java:1889)
at android.app.job.IJobScheduler$Stub$Proxy.enqueue(IJobScheduler.java:211)
Is there any reason to solve it?
I had tried to cancel it before enqueuing the new one as below:
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP)
JobScheduler scheduler = (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE);
if (scheduler != null)
for (JobInfo jobInfo : scheduler.getAllPendingJobs())
if (jobInfo.getId() == JOB_ID)
scheduler.cancel(JOB_ID);
However, I got another issue:
Caused by java.lang.IllegalArgumentException: Given work is not active: JobWorkItemid=1 intent=Intent cmp=com.my.test.package/.notifier.NotifierService dcount=1
at android.app.job.JobParameters.completeWork(JobParameters.java:221)
Do you guys have any suggestion?
P/s: I could not reproduce it on my devices, but I got it thousand times in CrashReport tool. Canceling work before enqueuing the new work did solve the 100 distinct jobs issue, but it raised another bug as above.
android jobintentservice
Here's my JobIntentService
public class NotifierService extends JobIntentService
public static void enqueueWork(Context context, Intent work)
enqueueWork(context, NotifierService.class, JOB_ID, work);
protected void onHandleWork(Intent intent)
//simple if/else check
However, I got many crashes from the crashlytics which complained about 100 distinct jobs
:
Caused by java.lang.IllegalStateException: Apps may not schedule more than 100 distinct jobs
at android.os.Parcel.readException(Parcel.java:1951)
at android.os.Parcel.readException(Parcel.java:1889)
at android.app.job.IJobScheduler$Stub$Proxy.enqueue(IJobScheduler.java:211)
Is there any reason to solve it?
I had tried to cancel it before enqueuing the new one as below:
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP)
JobScheduler scheduler = (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE);
if (scheduler != null)
for (JobInfo jobInfo : scheduler.getAllPendingJobs())
if (jobInfo.getId() == JOB_ID)
scheduler.cancel(JOB_ID);
However, I got another issue:
Caused by java.lang.IllegalArgumentException: Given work is not active: JobWorkItemid=1 intent=Intent cmp=com.my.test.package/.notifier.NotifierService dcount=1
at android.app.job.JobParameters.completeWork(JobParameters.java:221)
Do you guys have any suggestion?
P/s: I could not reproduce it on my devices, but I got it thousand times in CrashReport tool. Canceling work before enqueuing the new work did solve the 100 distinct jobs issue, but it raised another bug as above.
android jobintentservice
android jobintentservice
edited Mar 26 at 11:43
Kingfisher Phuoc
asked Mar 26 at 11:38
Kingfisher PhuocKingfisher Phuoc
5,4287 gold badges39 silver badges72 bronze badges
5,4287 gold badges39 silver badges72 bronze badges
Any help for this? I am getting the same issue.
– Sujeet Kumar
Jun 14 at 8:52
I'm facing the same issue with my implementation. All finished jobs are somehow created over again if I start a new job. I'm on 2.0.1. It's supposedly fixed in some earlier alpha version as mentioned in stackoverflow.com/questions/52286698/… but I don't think so.
– ArunL
Jul 15 at 12:21
add a comment |
Any help for this? I am getting the same issue.
– Sujeet Kumar
Jun 14 at 8:52
I'm facing the same issue with my implementation. All finished jobs are somehow created over again if I start a new job. I'm on 2.0.1. It's supposedly fixed in some earlier alpha version as mentioned in stackoverflow.com/questions/52286698/… but I don't think so.
– ArunL
Jul 15 at 12:21
Any help for this? I am getting the same issue.
– Sujeet Kumar
Jun 14 at 8:52
Any help for this? I am getting the same issue.
– Sujeet Kumar
Jun 14 at 8:52
I'm facing the same issue with my implementation. All finished jobs are somehow created over again if I start a new job. I'm on 2.0.1. It's supposedly fixed in some earlier alpha version as mentioned in stackoverflow.com/questions/52286698/… but I don't think so.
– ArunL
Jul 15 at 12:21
I'm facing the same issue with my implementation. All finished jobs are somehow created over again if I start a new job. I'm on 2.0.1. It's supposedly fixed in some earlier alpha version as mentioned in stackoverflow.com/questions/52286698/… but I don't think so.
– ArunL
Jul 15 at 12:21
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55356239%2fapps-may-not-schedule-more-than-100-distinct-jobs-with-jobintentservice%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55356239%2fapps-may-not-schedule-more-than-100-distinct-jobs-with-jobintentservice%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Any help for this? I am getting the same issue.
– Sujeet Kumar
Jun 14 at 8:52
I'm facing the same issue with my implementation. All finished jobs are somehow created over again if I start a new job. I'm on 2.0.1. It's supposedly fixed in some earlier alpha version as mentioned in stackoverflow.com/questions/52286698/… but I don't think so.
– ArunL
Jul 15 at 12:21